For example let's say we have the property called Customer that returns a value of name
String name; <== Global Variable
public String getName()
{
return name;
}
public String setName(holdingName)
{
name=holdingName;
}
and a constructor called Match
public FullName(String realName)
{
holdingName = realName;
}
Can I do what I have done up there? I know it does not work, but is there any way to make it work?
Please let me know if you need further information to get this question answered..
Thank you