I have a class called Pin.
Pin
public class Pin { private string title; public Pin() { } public setTitle(string title) { this.
To execute a method you need to add parentheses, even if the method does not take arguments.
So it should be:
string t = obj.getTitle();