A superclass is a class that has been extended by another class. It allows the extending class to inherit its state and behaviors.

Also Known As: base class, parent class


Imagine you define a Person class:

 public class Person

A new class can be created by extending this class:

 public class Employee extends Person

The Person class is said to be the superclass of the Employee class.

mla apa chicago
Your Citation
Leahy, Paul. "Superclass." ThoughtCo, Jan. 29, 2020, Leahy, Paul. (2020, January 29). Superclass. Retrieved from Leahy, Paul. "Superclass." ThoughtCo. (accessed January 23, 2021).