1.

How many types of the constructor are there in C++?(a) 1(b) 2(c) 3(d) 4This question was addressed to me in semester exam.I need to ask this question from Class Hierarchies and Abstract Classes topic in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The CORRECT choice is (c) 3

The EXPLANATION is: There are THREE types of constructor in C++. They are the Default constructor, PARAMETERIZED constructor, COPY constructor.



Discussion

No Comment Found

Related InterviewSolutions