ok singleton class is class that you can instantiated only one object overall application or service and has private contractor
template like
class Singleton
{
public:
static Singleton * getInstance()
{
if(single==NULL)
{
single = new Singleton();
}
return single;
}
private:
Singleton();
static Singleton * single;
} ;