
设计模式学习
文章平均质量分 78
AU3604
这个作者很懒,什么都没留下…
展开
-
Java Design Pattern: Abstract Factory
Abstract Factory pattern adds another layer of abstraction for Factory pattern. If we compare Abstract Factory with Factory, it is pretty obvious that a new layer of abstraction is added. Abstract Fac翻译 2013-11-17 22:30:31 · 1014 阅读 · 0 评论 -
Java Design Pattern: State
In State pattern a class behavior changes based on its state. This type of design pattern comes under behavior pattern.In State pattern, we create objects which represent various states and a contex翻译 2013-11-17 22:55:17 · 1137 阅读 · 0 评论 -
Java Design Pattern: Factory
1. The story for Factory patternFactory design pattern is used for creating an object based on different parameters. The example below is about creating human in a factory. If we ask the factory for翻译 2013-11-17 22:23:15 · 1121 阅读 · 0 评论 -
Java Design Pattern: Singleton
Singleton pattern is one of the most commonly used patterns in Java. It is used to control the number of objects created by preventing external instantiation and modification. This concept can be gene翻译 2013-11-17 22:37:29 · 1005 阅读 · 0 评论 -
Java Design Pattern: Prototype
By X WangPrototype design pattern is used when very similar objects frequently are required. Prototype pattern clones objects and set the changed feature. This way less resourc翻译 2014-10-13 08:46:15 · 1047 阅读 · 0 评论