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
There is no such thing in C++. Constructors and destrcutors typically used to create or destruct instance of object. It's meaningless to call them without corresponding object instance. You can emulate them using a singleton pattern.