Creational Design Patterns

By Sukesh Marla Sep 19 2012
Design Patterns are Reusable and Documented solutions for commonly occurring problems in software development.
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 3.4k
  • 0
Creational Patterns

We use the "new" keyword whenever we want to create a new object and creational patterns solve problems related to the creation of objects.

They are:

Singleton - Ensures that only a single instance of a given object can exist at a context
Factory - Factory Method Pattern defines an interface for creating an object, but let the subclasses decide which class to instantiate.
Abstract Factory - It provides an Interface for creating families of related or dependent objects without specifying their concrete classes
Builder - Separate the construction of a complex object from its representation so that the same construction process can create different representations.
Prototype - Allow to create new instance from existing one.