1、单一职责原则(Single Responsibility Principle:SRP)
2、里氏替换原则(Liskov Substitution Principle:LSP)
3、依赖倒置原则(Dependence Inversion
Principle:DIP)
4、接口隔离原则(Interface Segregation
Principle:ISP)
5、迪米特原则(Law of Demeter : LoD)
6、开闭原则(Open-Closed
Principle:OCP)
时间: 2024-10-13 16:55:45