设计模式总结
设计模式
设计模式
##创建型 工厂方法模式 Factory Method 抽象工厂模式 Abstract Factory 单例模式 Singleton 原型模式 Prototype 建造者模式 Builder
##结构型
代理模式 Proxy 门面模式 Facade 装饰器模式 Decorator 亨元模式 Flyweight 组合模式 Composite 适配器模式 Adapter 桥接模式 Bridge
##行为型
模板方法模式 Template Method 策略模式 Strategy 责任链模式 Chain Of responsibility 迭代器模式 Iterator 命令模式 Command 状态模式 State 备忘录模式 Memento 中介者模式 Mediator 解释器模式 Interpreter 观察者模式 Observer 访问者模式 Visitor
七大设计原则
开闭原则 Open-Closed Principle 依赖倒置原则 Dependence Inversion Principle 单一职责原则 Simple Responsibility Principle 接口隔离原则 Interface Segregation Principle 迪米特法则 Law Of Demeter 里氏代换原则 Liskov Substitution Principle 合成复用原则 Composite&Aggregate Reuse Principle