Superclass

Definition:

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

Examples:

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.

Format
mla apa chicago
Your Citation
Leahy, Paul. "Superclass." ThoughtCo, Jun. 1, 2017, thoughtco.com/superclass-2034298. Leahy, Paul. (2017, June 1). Superclass. Retrieved from https://www.thoughtco.com/superclass-2034298 Leahy, Paul. "Superclass." ThoughtCo. https://www.thoughtco.com/superclass-2034298 (accessed January 21, 2018).