1.

What is meant by pure virtual function?(a) Function which does not have definition of its own(b) Function which does have definition of its own(c) Function which does not have any return type(d) Function which does not have any return type & own definitionThe question was posed to me in an interview for job.My question is based upon Abstract Classes in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

The CORRECT CHOICE is (a) Function which does not have DEFINITION of its own

The explanation is: As the name itself implies, it have to DEPEND on other CLASS only.



Discussion

No Comment Found

Related InterviewSolutions