What is the main purpose of the constructor?
(a) Begin the execution of class
(b) Include the macros for the program
(c) Establish the class invariant
(d) Terminate the program
I have been asked this question in an interview.
The question is from Exceptions and Efficiency topic in chapter Derived Classes, Templates & Exception Handling in C++ of C++