August 05, 2003

Creation Pattern

Creational pattern dictates how objects can be created, who has control over creating the objects, when the object is created, and the relationship of the object that creates other objects with the actual object itself

Why use Creational Pattern?

  • These types of patterns allow a system to be more flexible and extensible, since there is always a layer of indirection between the actual object and the client using the object.
  • By encapsulating the object creation, you avoid hard coding the object relationship and encapsulate the same.

Creational Pattern has following subtypes:

· Factory Method

· Abstract Factory

· Builder

· Singleton

· Prototype