Getter and Setter vs. Builder strategy
- by Extrakun
I was reading a JavaWorld's article on Getter and Setter where the basic premise is that getters expose internal content of an object, hence tightening coupling, and go on to provide examples using builder objects.
I was rather leery of abolishing getter/setter but on second reading of the article, see to quite like the idea. However, sometimes I…