« Return to Thread: getter / setter questions

Re: getter / setter questions

by Ricky Clarkson :: Rate this Message:

Reply to Author | View in Thread

I think it's reasonably obvious that bar isn't the name of a setter for foo.

2009/7/8 Michael <micha-1@...>:
> Am Wednesday 08 July 2009 10:58:57 schrieb Ricky Clarkson:
>> The setter doesn't have the same name as the getter.  "v_" != "v"
>
> yes, it's only that foo and foo_ works, but bar und foo_ doesn't work, so the
> names have to be the same, expect for the underline. But this isn't obvious.
>
>  Michael
>



--
Ricky Clarkson
Java Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clarkson@...

 « Return to Thread: getter / setter questions