Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
A child class (or subclass) is a class that inherits properties and behaviors from its parent class. It can add additional features or override existing ones inherited from the parent.
Related terms
Parent Class: A parent class (or superclass) is the class that serves as the basis for other classes. It provides common attributes and behaviors that subclasses inherit.
Super Keyword: The super keyword allows access to methods or variables defined in the superclass (parent class). It is used when we want to refer specifically to those inherited members.
Method Overriding: Method overriding occurs when there is already a method with the same name in the parent class, and we redefine it in the child class with different implementation.