Possible Duplicate:
Singleton: How should it be used
I want to know what is the real time scenario when one should use singleton design pattern.
Possible Duplicate:
Singleton: How should it be used
I want to know what is the real time scenario when one should use singleton design pattern.
When you have an object that's expensive to create, and there is logical that only one instance should exist. It will come to you :)