Baseclass and Subclass.

Q19. What is a baseclass? What is a subclass? What is the relationship between a baseclass and subclass?

Ans. A baseclass is a class whose properties are inherited by other classes (its subclasses).

A subclass is class which inherits properties from its base class.

A sub 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: