Saturday, June 30, 2012

Singleton Class


1.Define the constructor as private
2.Expose a method that can be used to create the object - getObject()
3. Synchronize the exposed method getObject method
4. Define a private Static - which would store a single instance.

No comments:

Post a Comment