设计模式概论

由于性子急,翠花上菜:

设计模式分类:创建模式、结构模式与行为模式

创建模式:

  工厂模式(Factory)
  单例模式(Signleton)
  构建模式(Builder)
  原型模式(Prototype)

结构模式: 

  适配器模式(Adapter):Match interfaces of different classes
  合成模式(Composite):A tree structure of simple and composite objects
  装饰模式(Decorator):Add responsibilities to objects dynamically
  代理模式(Proxy):An object representing another object
  享元模式(Flyweight):A fine-grained instance used for efficient sharing
  门面模式(Facade):A single class that represents an entire subsystem
  桥接模式(Bridge):Separates an object interface from its implementation

行为模式:

  模板(Template)
  策略(Strategy)
  状态(State)
  观察(Observer)
  备忘(Memento)
  中介(Mediator)
  命令(Commond)
  参观(Visitor)
  职责链(Chain of Responsibility)
  迭代(Iterator)
  解释器(Interpreter)

 后续分析各模式的要点,敬请关注,谢谢!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值