When are Getters and Setters Justified
- by Winston Ewert
Getters and setters are often criticized as being not proper OO. On the other hand most OO code I've seen has extensive getters and setters.
When are getters and setters justified? Do you try to avoid using them? Are they overused in general?
If your favorite language has properties (mine does) then such things are also considered getters and…