1.

Base class_______________(a) Can be made abstract(b) Can’t be made abstract(c) Must be abstract(d) If made abstract, compile time errorThe question was asked in quiz.My question is based upon Hierarchical Inheritance topic in chapter Inheritance & its Types of Object Oriented Programming

Answer» CORRECT choice is (a) Can be made abstract

For EXPLANATION: The base class may or may not be DECLARED abstract. It depends on the need of program. If it is made abstract, it can CONTAIN undefined functions too. In turn, those functions will have to be implemented by each of the DERIVED classes.


Discussion

No Comment Found

Related InterviewSolutions