![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
创建模式
文章平均质量分 81
经典的21中设计模式中,有5种具体的创建模式:12345
Itinerant Monk
业精于勤,荒于嬉,行成于思,毁于随业精于勤,荒于嬉,行成于思,毁于随。《深入JAVA虚拟机》
展开
-
创建模式-原型模式(Prototype Pattern)
Specify the kinds of objects to create using a prototypical(模范的; 典型的) instance, and create new objects by copying this prototype.原创 2014-08-20 23:32:30 · 517 阅读 · 4 评论 -
创建模式-建造者模式(Builder Pattern)
The intent of the Builder design pattern is to separate the construction of a complex object from its representation. By doing so, the same construction process can create different representations.原创 2017-09-10 20:45:53 · 295 阅读 · 0 评论 -
创建模式-单例模式(Singleton Pattern)
目的:应用场景:实现方式:懒汉模式饿汉模式一饿汉模式二Double Check枚举方式原创 2021-11-11 13:52:12 · 441 阅读 · 1 评论