design_patterns
design_patterns copied to clipboard
图说设计模式
1. 对象池模式(Object Pool) 2. 原型模式(Prototype) 3. 静态工厂模式(Static Factory)
okhttp的责任链模式在这个文档里是否有体现呢,如果不是那是哪一种模式的衍生?
最后一段的排版有问题,已修复。
修改单词: 实现关系(realize) -> 实现关系(realization)
修正: 泛化关系用一条带空心箭头的~~直线~~实线表示
` ConcreteProductA::ConcreteProductA(){ } ConcreteProductA::~ConcreteProductA(){ } void ConcreteProductA::Use() { cout
[看懂UML类图和时序图](https://design-patterns.readthedocs.io/zh_CN/latest/read_uml.html) > 小汽车与发动机之间是组合关系,使用带实心箭头的实线表示; 没有汽车,发动机也可以独立存在,汽车与发动机应该是聚合关系。同理,汽车和轮胎也是聚合关系。 我参考的这篇文章上的内容[the-class-diagram](https://developer.ibm.com/technologies/web-development/articles/the-class-diagram/)