first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Java Fundamentals: “Why getter and setter methods are evil”; javaworld.com

You shouldn't use accessor methods (getters and setters) unless absolutely necessary because these methods expose information about how a class is implemented and as a consequence make your code harder to maintain.

[http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-toolbox.html?page=6]

[In Java, you can only access private-member data with methods.]

mod date: 2008-12-02T21:42:32.000Z