All Subjects
Light
AP Computer Science A
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.
A subclass is a class that inherits properties and methods from another class.
A superclass is the parent or base class from which other classes inherit properties and methods.
Inheritance allows one class to acquire the properties and methods of another class.