设计模式——汇总篇

来源:互联网 发布:淘宝店铺装修首页全屏 编辑:程序博客网 时间:2024/06/06 06:42

设计模式学习笔记,不断完善中。。。。

设计模式共分为三类:

一 创建型模式

(1)单例模式(singleton):http://blog.csdn.net/xiaowang627/article/details/60488795

(0)简单工厂:http://blog.csdn.net/xiaowang627/article/details/61420120

(2)工厂方法模式(factory method):http://blog.csdn.net/xiaowang627/article/details/61424082

(3)抽象工厂模式(abstract factory)

(4)建造者模式(build)

(5)原型模式(prototype)

二 结构型模式

(1)代理模式(proxy):http://blog.csdn.net/xiaowang627/article/details/72471291

(2)适配器模式(adapter)

(3)装饰器模式(decorator)

(4)外观模式(facade)

(5)桥接模式(bridge):http://blog.csdn.net/xiaowang627/article/details/72823948

(6)组合模式(posite)

(7)享元模式(flyweight)

三 行为型模式

(1)责任链模式(chain of responsibility):http://blog.csdn.net/xiaowang627/article/details/61617751

(2)策略模式(strategy)

(3)模板方法模式(template mehtod)

(4)观察者模式(observer)

(5)访问者模式(visitor)

(6)中介者模式(mediator)

(7)命令模式(mand):http://blog.csdn.net/xiaowang627/article/details/72825014

(8)迭代子模式(iterator)

(9)备忘录模式(memento)

(10)状态模式(state)

(11)解释器模式(interpreter)