zoukankan      html  css  js  c++  java
  • 设计模式概论

    由于性子急,翠花上菜:

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

    创建模式:

      工厂模式(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)

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

  • 相关阅读:
    codefoces 1405 D Tree Tag
    洛谷P3413 萌数
    数位DP模板
    leetcode 统计所有可行路径
    Josephus Transform 加速置换
    牛客IOI周赛18-提高组 排列
    Find a way HDU
    Oil Deposits HDU
    Fire! UVA
    Pots POJ
  • 原文地址:https://www.cnblogs.com/wenrenhua08/p/3928598.html
Copyright © 2011-2022 走看看