DesignPatterns icon indicating copy to clipboard operation
DesignPatterns copied to clipboard

GOF 23 种设计模式 C++ 实现

Design Patterns 设计模式

创建型模式(Creational Pattern)

对类的实例化过程进行了抽象,能够将软件模块中对象的创建和对象的使用分离。

结构型模式(Structural Pattern)

结构型模式主要用于处理类或对象的组合,从而应对需求变化为对象结构带来的冲击。

行为型模式(Behavioral Pattern)

行为型模式主要用于描述对类或对象怎样交互和怎样分配职责,即关注它们之间的相互作用。