View Single Post
Old 30-12-2009, 09:18 PM   #1
rajesh
Member
 
rajesh's Avatar
 
Join Date: Dec 2009
Posts: 76
Rep Power: 15
rajesh is on a distinguished road
Post What is Singleton Design Patter?

Singleton design pattern is used by an application to ensure that at any time there is only one instance of a class created. You can achieve this by having the private constructor in the class and having a getter method which returns an object of the class and creates one for the first time if its null.
rajesh is offline   Reply With Quote