The Instance method calls the constructor. The Instance method is static, so you can access it without creating it, and since it is a member, it can call a private constructor.
Then your constructor can do any necessary initialization.
Aside, your singleton member should be a pointer.
doron source
share