Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C# allows it but but Java doesn't have this. Hence why it's standard operating procedure to just use setters from the beginning, because it might be nontrivial to update all references.


Play! framework allows you to use getters and setters with public members as you would in C#.

Not sure how this is implemented.


Spring Roo does the same through the use of aspect programming (code generation, essentially - it generates the boilerplate behind the scenes).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: