Comment on Java.evolved: Java has evolved. Your code can tooparentComments−dwroberts6moI think getters and setters had more value when IDEs and refactoring tools were worse (or non-existent).A free-for-all accessing some public field is now less of a risk because it’s trivial to find all references and change them.
Comments
I think getters and setters had more value when IDEs and refactoring tools were worse (or non-existent).
A free-for-all accessing some public field is now less of a risk because it’s trivial to find all references and change them.