1.

Which of the following cannot be used with the virtual keyword?(a) Class(b) Member functions(c) Constructors(d) DestructorsThe question was asked in my homework.My question is based upon OOPs Concept in division Basics Concepts of C++ of C++

Answer»

The correct answer is (c) CONSTRUCTORS

The best explanation: Virtual keyword cannot be USED with constructors as constructors are defined to initialized an object of particular class hence no other class NEEDS CONSTRUCTOR of other class.



Discussion

No Comment Found

Related InterviewSolutions