23种设计模式 计算机
时间: 2024-05-08 21:04:52 浏览: 22
23种设计模式是指在计算机软件设计中,常用的23种设计模式,它们是:
1. 工厂方法模式(Factory Method Pattern)
2. 抽象工厂模式(Abstract Factory Pattern)
3. 单例模式(Singleton Pattern)
4. 建造者模式(Builder Pattern)
5. 原型模式(Prototype Pattern)
6. 适配器模式(Adapter Pattern)
7. 桥接模式(Bridge Pattern)
8. 组合模式(Composite Pattern)
9. 装饰模式(Decorator Pattern)
10. 外观模式(Facade Pattern)
11. 享元模式(Flyweight Pattern)
12. 代理模式(Proxy Pattern)
13. 观察者模式(Observer Pattern)
14. 中介者模式(Mediator Pattern)
15. 备忘录模式(Memento Pattern)
16. 解释器模式(Interpreter Pattern)
17. 策略模式(Strategy Pattern)
18. 命令模式(Command Pattern)
19. 职责链模式(Chain of Responsibility Pattern)
20. 访问者模式(Visitor Pattern)
21. 状态模式(State Pattern)
22. 模板方法模式(Template Method Pattern)
23. 解耦框架模式(Dependency Injection Pattern)
这些设计模式在不同的场景中有不同的应用,可以帮助开发者更好地组织代码、增强代码的复用性和可维护性。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)