设计模式-六大原则

设计模式6大原则:

1.单一职责原则(Single Responsibility Principle, SRP)

2.开闭原则(Open-Closed Principle, OCP)

3.里氏代换原则(Liskov Substitution Principle, LSP)

4.依赖倒转原则(Dependency Inversion  Principle, DIP)

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

6.迪米特法则(Law of  Demeter, LoD)

原文地址:https://www.cnblogs.com/mayfly-xlc/p/10734380.html