1.

Which among the following is true?(a) The abstract functions must be only declared in derived classes(b) The abstract functions must not be defined in derived classes(c) The abstract functions must be defined in base and derived class(d) The abstract functions must be defined either in base or derived classI have been asked this question in my homework.This interesting question is from Abstract Function in portion Member Functions & its Types of Object Oriented Programming

Answer» CORRECT option is (a) The ABSTRACT functions must be only declared in derived classes

Explanation: The abstract functions can’t be DEFINED in BASE class. They are to be defined in derived classes. It is a rule for abstract functions.


Discussion

No Comment Found

Related InterviewSolutions