Comment Re:They said it's not a Java copy, anyone believe (Score 1) 623
>Java doesn't have property-handlers (eg. write functions that are treated as member variables -
> eg: a.setName("MyName") would become: a.Name = "MyName" - but it would still go through a
> function. These are great for encapsulation. C# has it - Java doesn't.
They are great if you like to separate your local vars from your member vars with an _m or an m_:
setm_Name("MyName");
Looks nice eh? NOT.
> eg: a.setName("MyName") would become: a.Name = "MyName" - but it would still go through a
> function. These are great for encapsulation. C# has it - Java doesn't.
They are great if you like to separate your local vars from your member vars with an _m or an m_:
setm_Name("MyName");
Looks nice eh? NOT.