Fork me on GitHub Fork me on GitHub

随笔分类 -  Design Pattern

摘要:行为型设计模式有: 共11种观察者模式(Observer)状态模式(State)策略模式(Strategy)职责链模式(Chain of Responsibility)命令模式(Command)中介者模式(Mediator)模板方法模式(Template Method)解释器模式(Interpret... 阅读全文
posted @ 2015-12-08 09:49 墨城烟雨 阅读(984) 评论(0) 推荐(0) 编辑
摘要:结构型设计模式有: 共7种代理模式(Adapter)适配器模式(Adapter)外观模式(Facade)组合模式(Composite)装饰模式(Decorator)享元模式(Flyweight)桥接模式(Proxy) 阅读全文
posted @ 2015-12-08 09:48 墨城烟雨 阅读(592) 评论(0) 推荐(0) 编辑
摘要:创建型设计模式有: 共6种简单工厂模式(Simple Factory)工厂方法模式(Factory Method)抽象工厂模式(Abstract Factory)建造者模式(Builder)原型模式(Prototype)单例模式(Singleton)简单工厂模式功能:主要用于创建对象。新添加类时,不... 阅读全文
posted @ 2015-12-07 15:37 墨城烟雨 阅读(15202) 评论(0) 推荐(0) 编辑