WellerQu / GOF

设计模式实现

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GOF

设计模式实现

自己并没有创建书中的设计模式,他们只是将软件行业中存在的、针对各种具体问题的一些优秀设计经验识别出来,并进行分类总结。

23种设计模式

  • 创建型模式
  1. Abstract Factory:抽象工厂模式

  2. Factory Method:工厂方法

  3. Singleton:单件

  4. Builder:生成器

  5. Prototype:原型

  • 结构型模式
  1. Adapter:适配器

  2. Composite:组成

  3. Bridge:桥接

  4. Decorator:装饰

  5. Facade:外观

  6. Flyweight:享元

  7. Proxy:代理

  • 行为型模式
  1. Chain of Responsibility:职责链

  2. Command:命令

  3. Interpreter:解释器

  4. Iterator:迭代器

  5. Mediator:中介者

  6. Memento:备忘录

  7. Observer:观察者

  8. State:状态

  9. Strategy:策略

  10. Template Method:模板方法

  11. Visitor:访问者

About

设计模式实现

License:MIT License