1、常见的设计模式
单例模式、工厂模式、建造模式、观察者模式、适配器模式、代理模式、装饰模式.
参考:https://www.cnblogs.com/cr330326/p/5627658.html
2、设计模式的六大原则及其含义
- 单一职责原则
- 开闭原则
- 里氏替换原则
- 依赖倒置原则
- 接口隔离原则
- 迪米特法则
参考:https://www.cnblogs.com/dolphin0520/p/3919839.html
1、常见的设计模式
单例模式、工厂模式、建造模式、观察者模式、适配器模式、代理模式、装饰模式.
参考:https://www.cnblogs.com/cr330326/p/5627658.html
2、设计模式的六大原则及其含义
参考:https://www.cnblogs.com/dolphin0520/p/3919839.html