Definition: A subclass is a class that extends another class. The subclass inherits the state and behaviors of the class it extends.
Also Known As: derived class, child class
Examples:
Imagine you define a Person class:
public class Person {}
A new class can be created by extending the Person class. Here the Employee class is a subclass of the Person class:
public class Employee extends Person {}