23种设计模式

设计模式一般分为三大类:

创建型模式,结构型模式,行为型模式

一、创建型模式

1.工厂模式(FactoryPattern)o
2.抽象工厂模式(AbstractFactoryPattern)
3.单例模式(SingletonPattern)
4.建造者模式(BuilderPattern)
5.原型模式(PrototypePattern)

二、结构型模式。

6.代理模式(ProxyPattern)
7.适配器模式(AdapterPattern)
8.桥接模式(BridgePattern)
9.组合模式(CompositePattern
10.装饰器模式(Decorator Pattern)
11.外观模式(FacadePattern)
12.享元模式(FlyweightPattern)

三、行为型模式

13.责任链模式(ChainofResponsibilityPattern)
14.命令模式(CommandPattern)
15.解释器模式(Interpreter Pattern)
16.迭代器模式(Iterator Pattern)
17.中介者模式(Mediator Pattern)
18.备忘录模式(Memento Pattern)
19.观察者模式(Observer Pattern)
20.状态模式(StatePattern)
21.策略模式(StrategyPattern)
22.模板模式(TemplatePattern)
23.访问者模式(Visitor Pattern)

end