Subclass: A subclass is a derived class that inherits properties and behaviors from its superclass (parent class). Continuing with our analogy, Car would be considered a subclass because it inherits from Vehicle.
Superclass: A superclass is another term for parent class – it's the original or base class from which other classes inherit properties and methods. In our analogy, Vehicle would be considered the superclass.
Inheritance: Inheritance is the mechanism through which one class acquires properties and behaviors from another class. It allows for code reuse and promotes hierarchical relationships between classes.