首页 > 其他 > 详细

设计模式学习

时间:2019-11-17 17:40:57      阅读:69      评论:0      收藏:0      [点我收藏+]

定义

In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn‘t a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.(在软件工程领域,设计模式是一个通用的、可重复的解决方案对一个经常发生的问题在软件设计领域。设计模式不是可以转化为代码的最终设计。它是用于解决在众多场景下,某一类问题的一个描述或者模板。)

设计原则

常用设计模式

  • 观察者模式
    • 应用场景
    • 典型实现
  • 装饰者模式
  • 工厂模式
  • 适配器模式

设计模式学习

原文:https://www.cnblogs.com/harry1989/p/11877080.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!