由于性子急,翠花上菜:
设计模式分类:创建模式、结构模式与行为模式
创建模式:
(Factory)
(Signleton) (Builder) 原型模式(Prototype)结构模式:
适配器模式(Adapter):Match interfaces of different classes
合成模式(Composite):A tree structure of simple and composite objects 装饰模式(Decorator):Add responsibilities to objects dynamically 代理模式(Proxy):An object representing another object 享元模式(Flyweight):A fine-grained instance used for efficient sharing 门面模式(Facade):A single class that represents an entire subsystem 桥接模式(Bridge):Separates an object interface from its implementation行为模式:
模板(Template)
策略(Strategy) 状态(State) 观察(Observer) 备忘(Memento) 中介(Mediator) 命令(Commond) 参观(Visitor) 职责链(Chain of Responsibility) 迭代(Iterator) 解释器(Interpreter)后续分析各模式的要点,敬请关注,谢谢!