![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
文章平均质量分 55
常用经典设计模式
Alex1_Code
目前从事软件开发工作
展开
-
观察者模式-源码剖析
观察者设计模式源码剖析原创 2022-04-05 20:41:58 · 1299 阅读 · 0 评论 -
设计模式-单例模式(普通模式与线程安全模式)
普通模式代码示例:线程安全模式代码示例:原创 2022-02-12 16:00:52 · 92 阅读 · 0 评论 -
设计模式-生成器模式
UML符号说明生成器模式结构-类图示意代码示例#include<iostream>#include<vector>#include<string>/** * It makes sense to use the Builder pattern only when your products are quite * complex and require extensive configuration. * * Unlike in other crea原创 2022-01-30 11:27:57 · 675 阅读 · 0 评论 -
抽象工厂模式讲解与代码示例
代码示例:#include<iostream>#include<string>/** * Each distinct product of a product family should have a base interface. All * variants of the product must implement this interface. */class AbstractProductA { public: virtual ~AbstractPro.原创 2022-01-29 16:15:47 · 779 阅读 · 0 评论