设计模式学习手册

设计模式的类别

  • 创造性模式(creational)

    创造型模式控制了对象的创建和类的实例化;

  • 结构性模式(structural)

    结构型设计模式控制了类和对象之间的关系

  • 表现型模式(behavioral)

    表现型设计模式控制了对象之间的交流和交互

    设计模式带来的影响范围——确定了解决方案的关注点

  • 对象层面的影响范围——解决对象关系的问题
    作用于运行期间,对象拥有动态的行为
  • 类层面的影响范围——解决类关系的问题
    作用于编译期间,类拥有静态的行为

作者

彭凯

发布于

2021-03-12

更新于

2021-03-13

许可协议

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.