1.

How many constructors can present in a class?(a) 1(b) 2(c) 3(d) multipleThe question was posed to me in exam.My question is from Class Hierarchies and Abstract Classes topic in section Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The CORRECT answer is (d) multiple

For EXPLANATION: There can be multiple constructors of the same class, provided they have DIFFERENT SIGNATURES.



Discussion

No Comment Found

Related InterviewSolutions