Getters and Setters: Code smell, Necessary Evil, or Can't Live Without Them [closed]
- by Avery Payne
Possible Duplicate:
Allen Holub wrote “You should never use get/set functions”, is he correct?
Is there a good, no, a very good reason, to go through all the trouble of using getters and setters for object-oriented languages? What's wrong with just using a direct reference to a property or method? Is there some kind of "semantical coverup"…