阅读背景:

为什么在Java中使用类作为结构坏习惯?

来源:互联网 

We recently had a code review . One of my classes was used so that I could return/pass more than one type of data from/to methods . The only methods that the class had were getters/setters . One of the team's members ( whose opinion I respect ) said that having a class like that is bad practice ( and not very OOP ) . Why is that ?We recently had a code review . One of my class




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: