1.

Constructors are used to ____________(a) initialize the objects(b) construct the data members(c) both initialize the objects & construct the data members(d) delete the objectsI have been asked this question in examination.I'm obligated to ask this question of Classes topic in division Source Files, Classes and Operator Overloading in C++ of C++

Answer» RIGHT choice is (a) initialize the objects

The best I can explain: Once the object is declared means, the constructor are ALSO declared by DEFAULT.


Discussion

No Comment Found

Related InterviewSolutions