設計模式之目錄篇

一. 創建型模式

1. 抽象工廠(Abstract Factory)

 

2. 建造者(Builder)

 

3. 工廠方法(Factory Method)

 

4. 原型(Prototype)

 

5. 單件(Singleton)

 

6. 對象池(Object Pool)

 

二.  結構型模式

7. 適配器(Adapter)

 

8. 橋接(Bridge)

 

9. 組合(Composite)

 

      10. 裝飾(Decorator)

 

      11. 外觀(Facade)

 

      12. 享元(FlyWeight)

 

      13. 代理(Proxy)

 

      14. 私有類數據(Private Class Data) 

 

三.  行爲型模式

      15. 職責鏈(Chain of responsibility)

 

      16. 命令(Command)

 

      17. 解釋器(Interpreter)

 

      18. 迭代(Iterator)

 

      19. 中介者(Mediator)

 

      20. 備忘錄(Memento)

 

      21. 觀察者(Observer)

 

      22. 狀態(State)

 

      23. 策略(Strategy)

 

      24. 模板方法(Template method)

 

      25. 訪問者(Visitor)

 

      26. 空對象(Null Object)

 

發佈了43 篇原創文章 · 獲贊 0 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章