设计模式-概括

设计模式 23种,分为三类:创建型模式结构型模式行为型模式
设计模式有六大原则:
1.单一职责原则 (Single Responsibility Principle)
2.开放-关闭原则 (Open-Closed Principle)
3.里氏替换原则 (Liskov Substitution Principle)
4.依赖倒转原则 (Dependence Inversion Principle)
5.接口隔离原则 (Interface Segregation Principle)
6.迪米特法则(Law Of Demeter)

以下为23中设计模式名称:
创建型模式:共 5
工厂模式(Factory Pattern)
抽象工厂模式(Abstract Factory Pattern)
单例模式(Singleton Pattern)
建造者模式(Builder Pattern)
原型模式(Prototype Pattern)

结构型模式:共 7
适配器模式(Adapter Pattern)
桥接模式(Bridge Pattern)
组合模式(Composite Pattern)
装饰器模式(Decorator Pattern)
外观模式(Facade Pattern)
享元模式(Flyweight Pattern)
代理模式(Proxy Pattern)

行为型模式:共 11
策略模式(Strategy Pattern)
模板模式(Template Pattern)
观察者模式(Observer Pattern)
迭代器模式(Iterator Pattern)
责任链模式(Chain of Responsibility Pattern)
命令模式(Command Pattern)
备忘录模式(Memento Pattern)
状态模式(State Pattern)
访问者模式(Visitor Pattern)
中介者模式(Mediator Pattern)
解释器模式(Interpreter Pattern)

posted @ 2022-01-05 21:53  masy  阅读(36)  评论(0编辑  收藏  举报