Why getter and setter methods are evil Make your code more maintainable by avoiding accessors I didn't intend to start an "is evil" series, but several readers asked me to explain why I mentioned that you should avoid get/set methods in last month's column, "Why extends Is Evil." Though getter/setter methods are commonplace in Java, they are not particularly object oriented (OO). In fact, they can
![Why getter and setter methods are evil](https://cdn-ak-scissors.b.st-hatena.com/image/square/36e6fb9db83431193a6d3c7a1cd7481586a70052/height=288;version=1;width=512/https%3A%2F%2Fidge.staticworld.net%2Fifw%2FIFW_logo_social_300x300.png)