介绍23中核心设计模式,大的分可以分为三组:结构型模式、创建型模式和行为型模式
结构型模式:装饰器模式(Decorator),代理模式(Proxy),桥接模式(Bridge)
组合模式(Composite),享元模式(Flyweight)
适配器模式(Adapter),外观模式(Facade)
创建型模式:原型模式(Prototype),工厂方法模式(Factory Method),单例模式(Singleton)
抽象工厂模式(Abstract Factory),生成器模式(Builder)
行为型模式:策略模式(strategy),状态模式(state),模板方法模式(Template Method)
职责链模式(chain of responsibility),命令模式(Command)
迭代器模式(iterator),中介模式(Mediator),观察者模式(Observer)
访问者模式(Visitor),解释器模式(Interpreter),备忘录模式(Memento)