23个设计模式

xiaoxiao2021-02-27  170

一、创建型(Creational)

1. 单例(Singleton)

2. 原型(Prototype)

3. 建造者(Builder)

4. 工厂方法(Factory Method)

5. 抽象工厂(Abstract Factory)

二、结构型(Structural)

6. 适配器(Adapter)

7. 桥接(Bridge)

8. 组合(Composite)

9. 装饰器(Decorator)

10. 外观(Facade)

11. 享元(Flyweight)

12. 代理(Proxy)

三、行为型(Behavioral)

13. 责任链(Chain of Responsibility)

14. 命令(Command)

15. 解释器(Interpreter)

16. 迭代器(Iterator)

17. 中介者(Mediator)

18. 备忘录(Memento)

19. 访问者(Visitor)

20. 观察者(Observer)

21. 策略模式(Strategy)

22. 模板方法(Template Method)

23. 状态模式(State)

转载请注明原文地址: https://www.6miu.com/read-16754.html

最新回复(0)