52ky 发表于 2022-10-2 08:54:10

61条Java面向对象设计的经验原则

61条设计准则,遵从此法,可以去以后一些不必要的费事。(1)一切数据都应该隐藏在地点的类的内部。(2)类的使用者有必要依靠类的共有接口,但类不能依靠它的使用者。(3)尽量削减类的协议中的消息。(4)实现一切类都理解的最基本公有接口[例如,复制操作(深复制和浅复制)、相等性判断、准确输出内容、从ASCII描绘解析等等]........
61条Java面向对象设计的经验准则.doc

(61 design rules, following this law, can go to some unnecessary trouble in the future. (1) All data should be hidden inside the location class. (2) Users of a class need to rely on the common interface of the class, but a class cannot rely on its users. (3) Minimize messages in class protocols. (4) Implement the most basic public interface understood by all classes
61 Rules of Experience for Java Object Oriented Design.doc)




页: [1]
查看完整版本: 61条Java面向对象设计的经验原则