3 ms·
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
by esrauch 15y ago
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.
- jiggy2011 15y agoPlay! framework allows you to use getters and setters with public members as you would in C#. Not sure how this is implemented.
- aaimnr 15y agoSpring Roo does the same through the use of aspect programming (code generation, essentially - it generates the boilerplate behind the scenes).