设计模式(Design pattern)的定义: In software engineering, a software design pattern is a general, reusable solution to a commonly occurring problem within a given context in software design. 大意是:在软件设计中,在一些已定的条件大纲下,设计模式是一种通用并且可复用的解决方案. 设计模式总共有23种: 创建型模式 工厂模式与…