with such approach you can not prevent creating new instance
What i mean is
class st
{
public:
static st* getInstance()
Type: Posts; User: vart
with such approach you can not prevent creating new instance
What i mean is
class st
{
public:
static st* getInstance()
You make public function getInstance
and static member _instance
getInstance will check if _instance is nullPrt - it will call private constructor, assign result to _instance and return it -...