Friday, November 30, 2012

Singleton - Design Pattern (OOP)

Intent

  1. Ensure a class has only one instance, and provide a global point of access to it.
  2. Encapsulated " just in time initialization " \ "initialization on first use "


Issue 
When the application needs one instance of an object ( one and only one ).
As an extra factor, Lazy Initialization and Global access are necessary.