Creational Design Pattern
Design pattern includes creational, structural, and
behavioral patterns. But here we are going to cover few of the creational
patterns. All the creational design patterns define the best possible way in
which an object can be instantiated. These describes the best way to CREATE
object instances. Creational design pattern tries to reduce the creational
complexities (of an object) at its maximum level. It?s not only important to
understand how to use, but also equally important when to use patterns
- Factory
Pattern
One of the goals of object-oriented design is to delegate responsibility among different objects. This kind of partitioning is good since it encourages Encapsulation and Delegation. A class may need it?s subclasses to specify the objects to be created or delegate responsibility to one of several helper subclasses so that knowledge can be localized to specific helper subclasses.
Now, read more at : http://www.javajazzup.com/issue2/page25.shtml