Tuesday, November 4, 2008
Are you using getters and setters?
Then use them everywhere. I mean equals, toString, compare and other methods, belonging to the same class. Failing to do so might backfire any time you add some logic to the setter/getter (and I know, that getters/setters are considered an anti-pattern by some, but that's another topic).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment