![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
五十块
这个作者很懒,什么都没留下…
展开
-
创建型设计模式之Prototype
文章目录一、使用意图二、应用场合三、UML图四、组织结构(building blocks)五、特性六、实现注意点七、相关设计模式八、参考资料一、使用意图Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.A ...原创 2019-05-12 21:21:37 · 201 阅读 · 0 评论 -
创建型设计模式之Builder
文章目录一、使用意图二、UML图三、组织结构(building blocks)四、Client使用时的时序图五、特性六、实现注意点七、相关设计模式八、参考资料一、使用意图Separate the construction of a complex object from its representation so that the same construction process can c...原创 2019-05-12 20:40:49 · 211 阅读 · 0 评论 -
创建型设计模式之Abstract Factory
文章目录一、使用意图二、UML图三、组织结构(building blocks)四、特性五、实现注意点六、相关设计模式七、参考资料一、使用意图Provide an interface for creating families of related or dependent objects without specifying their concrete classes.二、UML图三、...原创 2019-05-12 17:10:00 · 150 阅读 · 0 评论 -
创建型设计模式之Factory Method
文章目录一、使用意图二、什么时候使用三、UML图四、组织结构(building blocks)五、特性六、实现注意点七、相关设计模式八、参考资料一、使用意图Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a ...原创 2019-05-12 16:04:20 · 127 阅读 · 0 评论 -
创建型设计模式之Singleton
文章目录一、使用意图二、实现注意点三、参考资料一、使用意图Ensure a class only has one instance, and provide a global point of access to it.Clients access a Singleton instance solely through Singleton’s Instance operation.二、实现...原创 2019-05-12 13:53:27 · 94 阅读 · 0 评论