面向对象的几个设计原则?

设计目标---->.net

1.开闭原则(The Open-Closed Principle ,OCP)设计

2.里氏替换原则(Liskov Substitution Principle ,LSP)blog

3.迪米特原则(最少知道原则)(Law of Demeter ,LoD)接口

设计方法------>ip

4.单一职责原则(SRP:Single responsibility principle)ci

5.接口分离原则(Interface Segregation Principle ,ISP)get

6.依赖倒置原则(Dependency Inversion Principle ,DIP)it

7.组合/聚合复用原则(Composite/Aggregate Reuse Principle ,CARP)io

 

详情参考:sed

http://www.javashuo.com/article/p-fgewzost-md.html

相关文章
相关标签/搜索