设计模式分类
设计模式按照其功能和使用场景可以分为三大类:创建型模式(Creational Pattern)、结构型模式(Structural Pattern)和行为型模式(Behavioral Pattern)。
|
序号 |
设计模式 |
说明 |
包含的设计模式 |
|
1 |
创建型模式(5) |
提供了多种优雅创建对象的方法 |
工厂模式(Factory Pattern) |
|
抽象工厂模式(Abstract Factory Pattern) |
|||
|
单例模式(Singleton Pattern) |
|||
|
建造者模式(Builder Pattern) |
|||
|
原型模式(Prototype Pattern) |
|||
|
2 |
结构型模式(8) |
通过类和接口之间的继承和引用实现创建复杂结构对象的功能 |
适配器模式(Adapter Pattern) |
|
桥接模式(Bridge Pattern) |
|||
|
过滤器模式(Filter Criteria Pattern) |
|||
|
组合模式(Composite Pattern) |
|||
|
装饰器模式(Decorator Pattern) |
|||
|
外观模式(Facade Pattern) |
|||
|
享元模式(Flyweight Pattern) |
|||
|
代理模式(Proxy Pattern) |
|||
|
3 |
行为型模式(11) |
通过类之间不同的通信方式实现不同的行为模式 |
责任链模式(Chain of Responsibility Pattern) |
|
命令模式(Command Pattern) |
|||
|
解释器模式(Interpreter Pattern) |
|||
|
迭代器模式(Iterator Pattern) |
|||
|
中介者模式(Mediator Pattern) |
|||
|
备忘录模式(Memento Pattern) |
|||
|
观察者模式(Observer Pattern) |
|||
|
状态模式(State Pattern) |
|||
|
策略模式(Strategy Pattern) |
|||
|
模板模式(Template Pattern) |
|||
|
访问者模式(Visitor Pattern) |
本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/ec129aa814.html
