What is a subclass?

A class that inherits from another class is called the subclass. For example, the class Car is a subclass or a derived of Vehicle class.


Comments

Leave a Reply

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