2019-10-17 13:51:10 +00:00
|
|
|
|
# DesignPattern
|
2019-10-29 14:14:19 +00:00
|
|
|
|
Jungle设计模式系列
|
|
|
|
|
|
2021-09-07 05:30:23 +00:00
|
|
|
|
## 感谢
|
|
|
|
|
感谢@ichdream对本项目的贡献,也欢迎和支持更多coder提出修改和指正
|
|
|
|
|
|
2021-04-04 13:22:03 +00:00
|
|
|
|
## 订正
|
2021-10-28 15:18:28 +00:00
|
|
|
|
* 2021/10/28:GB2312 --> UTF-8
|
2021-09-07 05:30:23 +00:00
|
|
|
|
* 2021/09/07:merge @ichdream pull request,采用智能指针管理堆对象,引入makefile管理工程,修改文件编码格式
|
2021-04-04 13:22:03 +00:00
|
|
|
|
* 2021/04/04:为虚基类添加虚析构函数,避免内存泄露
|
|
|
|
|
* 2020/11/29:解决内存泄露问题
|
2021-09-07 05:30:23 +00:00
|
|
|
|
*
|
2021-04-04 13:22:03 +00:00
|
|
|
|
|
2021-09-30 04:35:33 +00:00
|
|
|
|
## 目录
|
|
|
|
|
|
2019-10-29 14:14:19 +00:00
|
|
|
|
代码资源:https://github.com/FengJungle/DesignPattern
|
2019-10-17 13:58:50 +00:00
|
|
|
|
|
|
|
|
|
01.设计模式——设计模式概述
|
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102513485
|
|
|
|
|
|
|
|
|
|
02.设计模式(二)——UML类图介绍
|
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102576624
|
|
|
|
|
|
|
|
|
|
03.设计模式(三)——面向对象设计原则
|
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102578436
|
|
|
|
|
|
|
|
|
|
04.设计模式(四)——简单工厂模式
|
|
|
|
|
|
2019-10-18 14:39:11 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102598181
|
|
|
|
|
|
|
|
|
|
05.设计模式(五)——工厂方法模式
|
|
|
|
|
|
2019-10-19 01:32:12 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102616501
|
|
|
|
|
|
|
|
|
|
06.设计模式(六)——抽象工厂模式
|
|
|
|
|
|
2019-10-19 07:52:26 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102618384
|
|
|
|
|
|
|
|
|
|
07.设计模式(七)——建造者模式
|
|
|
|
|
|
2019-10-20 03:06:41 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102635881
|
|
|
|
|
|
|
|
|
|
08.设计模式(八)——原型模式
|
|
|
|
|
|
2019-10-20 10:55:29 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102642682
|
|
|
|
|
|
|
|
|
|
09.设计模式(九)——单例模式
|
|
|
|
|
|
2019-10-22 00:24:54 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102649056
|
|
|
|
|
|
|
|
|
|
10.设计模式(十)——适配器模式
|
|
|
|
|
|
2019-10-23 14:19:36 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102656617
|
|
|
|
|
|
|
|
|
|
11.设计模式(十一)——桥接模式
|
|
|
|
|
|
2019-10-24 00:32:55 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102694306
|
|
|
|
|
|
|
|
|
|
12.设计模式(十二)——组合模式
|
|
|
|
|
|
2019-10-24 16:02:47 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102712738
|
|
|
|
|
|
|
|
|
|
13.设计模式(十三)——装饰模式
|
|
|
|
|
|
2019-10-26 07:43:05 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102733023
|
|
|
|
|
|
|
|
|
|
14.设计模式(十四)——外观模式
|
|
|
|
|
|
2019-10-27 07:58:03 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102752643
|
|
|
|
|
|
|
|
|
|
15.设计模式(十五)——享元模式
|
|
|
|
|
|
2019-10-29 14:14:19 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102763849
|
|
|
|
|
|
2019-10-30 14:54:41 +00:00
|
|
|
|
16.设计模式(十六)——代理模式
|
2019-10-29 14:14:19 +00:00
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102772697
|
|
|
|
|
|
2019-10-30 14:54:41 +00:00
|
|
|
|
17.设计模式(十七)——职责链模式
|
2019-10-29 14:14:19 +00:00
|
|
|
|
|
2019-10-30 14:54:41 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102790445
|
|
|
|
|
|
|
|
|
|
18.设计模式(十八)——命令模式
|
|
|
|
|
|
2019-11-02 14:33:36 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102810123
|
|
|
|
|
|
|
|
|
|
19.设计模式(十九)——解释器模式
|
|
|
|
|
|
2019-11-03 06:20:17 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102864850
|
|
|
|
|
|
|
|
|
|
20.设计模式(二十)——迭代器模式
|
|
|
|
|
|
2019-11-03 23:46:24 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102879383
|
|
|
|
|
|
|
|
|
|
21.设计模式(二十一)——中介者模式
|
|
|
|
|
|
2019-11-05 14:47:55 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102885567
|
|
|
|
|
|
|
|
|
|
22.设计模式(二十二)——备忘录模式
|
|
|
|
|
|
2019-11-06 13:36:28 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102907007
|
|
|
|
|
|
|
|
|
|
23.设计模式(二十三)——观察者模式
|
|
|
|
|
|
2019-11-09 02:41:43 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102927937
|
|
|
|
|
|
|
|
|
|
24.设计模式(二十四)——状态模式
|
|
|
|
|
|
2019-11-09 13:25:30 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102966121
|
|
|
|
|
|
|
|
|
|
25.设计模式(二十五)——策略模式
|
|
|
|
|
|
2019-11-10 02:50:30 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102984862
|
|
|
|
|
|
|
|
|
|
26.设计模式(二十六)——模板方法模式
|
|
|
|
|
|
2021-09-07 05:30:23 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/102994585
|
2021-09-30 04:35:33 +00:00
|
|
|
|
|
|
|
|
|
## 其他
|
|
|
|
|
|
2021-10-13 23:56:32 +00:00
|
|
|
|
27.设计模式那么多!面试官会怎么问?
|
2021-09-30 14:28:36 +00:00
|
|
|
|
|
2021-09-30 04:35:33 +00:00
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/120557373
|
2021-10-06 08:41:03 +00:00
|
|
|
|
|
2021-10-13 23:56:32 +00:00
|
|
|
|
28.划重点:面试中单例模式的考点!(C++版本)
|
2021-10-06 08:41:03 +00:00
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/120591638
|
2021-10-16 06:29:34 +00:00
|
|
|
|
|
|
|
|
|
29.new也可以创建对象,为什么需要工厂模式?
|
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/120754301
|
2021-10-28 23:50:26 +00:00
|
|
|
|
|
2021-10-28 23:51:11 +00:00
|
|
|
|
30.Qt中的设计模式
|
2021-10-28 23:50:26 +00:00
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/120936720
|
2022-02-26 08:10:12 +00:00
|
|
|
|
|
|
|
|
|
31.PImpl模式
|
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/123150564
|
|
|
|
|
|
2022-02-27 03:50:35 +00:00
|
|
|
|
32.啊,如何遵循“低耦合”设计原则?
|
|
|
|
|
|
|
|
|
|
博客地址:https://blog.csdn.net/sinat_21107433/article/details/123160949
|
|
|
|
|
|
|
|
|
|
|