The Car class is a subclass of the Vehicle class, meaning it inherits all the properties and methods of the Vehicle class. It represents a specific type of vehicle, such as a car.
Related terms
Subclass: A subclass is a class that inherits properties and methods from another class.
Superclass: A superclass is the parent or base class from which other classes inherit properties and methods.
Inheritance: Inheritance allows one class to acquire the properties and methods of another class.