本文为joshua317原创文章,转载请注明:转载自joshua317博客 https://www.joshua317.com/article/135
设计模式的六大原则
- 单一职责原则(Single Responsibility Principle)
- 开闭原则(Open Closed Principle)
- 里氏替换原则(Liskov Substitution Principle)
- 迪米特法则(Law of Demeter),又叫“最少知道法则”
- 接口隔离原则(Interface Segregation Principle)
- 依赖倒置原则(Dependence Inversion Principle)
本文为joshua317原创文章,转载请注明:转载自joshua317博客 https://www.joshua317.com/article/135