资讯

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 ...
Allen Holub's past Java Toolbox column, " Why Getter and Setter Methods Are Evil," discussed the downside of the getter/setter idiom. That article presented a design-level solution. (By keeping ...