Closed 19506jk closed 10 years ago
What is the point of having getters and setters for every field in the class? Why don't we just turn the fields in the public?
See http://programmers.stackexchange.com/questions/21802/when-are-getters-and-setters-justified
What is the point of having getters and setters for every field in the class? Why don't we just turn the fields in the public?