软件设计原则
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.单一职责原则(Simple responsibility pinciple SRP)
http://www.cnblogs.com/areliang/archive/2006/03/07/345111.html