This question was asked to me in an interview:
What is a static constructor?
Does it exist in C++? If yes, please explain it wit
Other way to emulate static constructor behaviour is to use instance variable with private constructor and static factory method.
Cat* Cat::give_birth() { static Cat *myone = NULL; if (myone == NULL) { myone = new Cat(); } return myone; }