What is singleton class ?

hello members,

What is singleton class in c++ and in which case we will go with singleton class.

Thanks & Regards
Rajkumar_g

I don't know it but the wikipedia entry looks rather informative.

Hi ,
A singleton class means you instantiate only one object of that class at a time. For example if you want to make an application in such a way that only one instance of that exe should execute at a time, you can make that class a singleton class. To make a class a singleton class, you have to make its contrustors private and write a static method for creating an object.