面向对象设计-设计模式

设计模式的分类-23个

创建型模式-5个

  • 工厂方法模式(Factory Method)
  • 抽象工厂模式(Abstract Method)
  • 原型模式(Prototype)
  • 单例模式(Singleton)
  • 构建器模式(Builder)

结构型模式-7个

  • 适配器模式(Adapter)
  • 桥接模式(Bridge)
  • 组合模式(Composite)
  • 装饰模式(Decorator)
  • 外观模式(Facade)
  • 享元模式(Flyweight)
  • 代理模式(Proxy)

行为型模式-11个

  • 职责链模式(chain of responsibility)
  • 命令模式(command)
  • 解释器模式(interpreter)
  • 迭代器模式(iterator)
  • 中介者模式(mediator)
  • 备忘录模式(memento)
  • 观察者模式(observer)
  • 状态模式(state)
  • 策略模式(strategy)
  • 模板方法(template method)
  • 访问者模式(visitor)

1 创建型模式

在这里插入图片描述

2 结构型模式

在这里插入图片描述

3 行为型模式(1)

在这里插入图片描述

3 行为型模式(2)

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_40507857/article/details/125896629