设计模式
GoF把设计模式分为三类:创建型、行为型、结构型。
创建型(creational)
1.- 1.Factory Method
- 2.Abstract Factory
- 3.Builder
- 4.Singleton
- 5.Prototype
行为型(behavioral)
2.- 1.Template Method
- 2.Memento
- 3.Observer
- 4.Chain of Responsibility
- 5.Command
- 6.State
- 7.Strategy
- 8.Mediator
- 9.Interpreter
- 10.Visitor
- 11.Iterator