设计模式理解(零)

设计模式总结

三大类:创建型、结构型、行为型

二十三种:

创建型:

    工厂方法    (Factory)

    抽象工厂    (abstract factory)

    建造者      (builder)

    单例        (singleton)

    原型        (prototype)

结构型

    适配器      (adapter)

    桥接        (bridge pattern)

    组合        (composite)

    装饰者      (Decrator/Wrapper)

    外观        (Facade)

    享元        (Flyweight)

    代理        (Proxy)

行为型

    命令         (Command)

    迭代器      (iterator)

    中介者      (Mediator)

    备忘录      (Momento)

    观察者      (Observer)

    状态        (State)

    策略        (Strategy)

    模板        (Template)

    访问者      (Visitor)

    责任链      (Chain of responsibility)

    解释器      (Interpretor)

posted @ 2016-03-02 17:24  myjhaha  阅读(103)  评论(0编辑  收藏  举报