posted 14 years ago
I have seen many bean classes like above which has private variables and getter/setter for encapsulation.
My question is that isin't this too much over engineering? Would it not be better to just have the class with the properties declared as public (assuming that the class has no behaviours/methods and the setter/getter do not perform any validation or any other operation on the data)
Cheers-
Joshua
SCJP,SCWCD, Into ATG now!