摘要: 1.开-闭原则(Open-Closed Principle, OCP):2.里氏代换原则(Liskov Substitution Principle,常缩写为.LSP)3.依赖倒置原则(Dependence Inversion Principle)4.接口隔离原则(Interface Segregation Principle, ISP)5.合成/聚合复用原则(Composite/Aggregate Reuse Principle,CARP)6.迪米特法则(Law of Demeter LoD)又叫做最少知识原则(Least Knowledge Principle,LKP)7.单一职责原则(S 阅读全文
posted @ 2011-03-14 21:57 wangshuming 阅读(258) 评论(0) 推荐(0) 编辑