1.

How many classes can be derived from a derived class?(a) Only 1(b) At most 1(c) At least 1(d) As many as requiredThis question was posed to me in unit test.This interesting question is from Derived Class in chapter Classes of Object Oriented Programming

Answer»

Correct option is (d) As many as required

The EXPLANATION: When a CLASS is to be derived from another derived class, the derived class behaves as a normal base class hence there are no RESTRICTION on how many class can be derived from a derived class. The derived class again behaves as a normal SUPERCLASS.



Discussion

No Comment Found

Related InterviewSolutions