Base Class, Derived Class And Their Relation.

Q7. What is the base class? What is derived class? How are these two interrelated?

Ans. A derived class is a class that inherits properties from some other class.

A base class is a class whose properties are inherited by derived class.

A derived class has nearly all the properties of base class but the reverse of it is not true.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: