1.

Each class can inherit the base class ________________(a) Independently using any inheritance(b) Independently with private inheritance only(c) With same type of inheritance(d) With each class using different inheritance onlyThe question was posed to me during an interview.This interesting question is from Hierarchical Inheritance in portion Inheritance & its Types of Object Oriented Programming

Answer»

Correct answer is (a) Independently using any inheritance

Best explanation: The CLASSES can INHERIT the base class using any type of inheritance. There is no MANDATORY condition to use same private,public or PROTECTED inheritance only.



Discussion

No Comment Found

Related InterviewSolutions