1.

How many classes must be there to implement hierarchical inheritance?(a) Exactly 3(b) At least 3(c) At most 3(d) At least 1I had been asked this question by my school principal while I was bunking the class.My question comes from Hierarchical Inheritance topic in portion Inheritance & its Types of Object Oriented Programming

Answer»

Right CHOICE is (b) At least 3

The best I can explain: At least 3 classes MUST be there. TWO derived classes and one base CLASS. This lets us IMPLEMENT two classes that have common characteristics from base class.



Discussion

No Comment Found

Related InterviewSolutions