30-12-2009, 09:18 PM | #1 |
Member
Join Date: Dec 2009
Posts: 76
Rep Power: 15 |
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.
|
Bookmarks |
|
|