Singleton *_instance;
Singleton* getInstance();
Singleton* Singleton::getInstance()
{
if(!_instance)
if
(!_instance)
_instance = new Singleton;
_instance =
new
Singleton;
return _instance;
return
_instance;
}
No comments:
Post a Comment