Subclass:A subclass is a class that inherits properties and behaviors from another class called its superclass. The "extends" keyword establishes this relationship between classes.
Superclass:A superclass is a class that serves as the base or parent class for other classes. It provides common attributes and behaviors that can be inherited by its subclasses.
Inheritance Hierarchy:Inheritance hierarchy refers to the hierarchical structure formed by classes through inheritance relationships. The "extends" keyword helps define this hierarchy by establishing relationships between superclasses and subclasses.