1. 程式人生 > >設計模式匯總

設計模式匯總

weight resp 策略模式 外觀 軟件設計模式 adapter soft iat apt

設計模式

23種設計模式大綱...

軟件設計模式原則

構建模式

  • Builder (建造者模式)
  • Abstract Factory (抽象工廠模式)
  • Factory Method (工廠方法)
  • Prototype (原型模式)
  • Singleton (單例模式)

結構模式

  • Adapter (適配器模式)
  • Bridge (橋接模式)
  • Composite (組合模式)
  • Decorator (裝飾模式)
  • Facade (外觀模式)
  • Flyweight (享元模式)
  • Proxy (代理模式)

行為模式

  • Chain of Responsibility(責任鏈模式)
  • Command (命令模式)
  • Interpreter (解釋器模式)
  • Iterator(叠代器模式)
  • Mediator(中介者模式)
  • Memento(備忘錄模式)
  • Observer(觀察者模式)
  • State(狀態模式)
  • Strategy (策略模式)
  • Template Method (模板方法)
  • Visitor(訪問者模式)

設計模式匯總