superclasss
Superclass, in object-oriented programming, denotes a class from which other classes derive. A superclass provides fields (data members) and methods that are inherited by its subclasses, forming an inheritance hierarchy that supports code reuse, interface consistency, and polymorphism. A subclass can extend or specialize the behavior of its superclass, override methods, and add new members. In many languages, a subclass can also invoke the superclass implementation through a special keyword or mechanism (for example, super calls). Constructors in a subclass may initialize inherited state by invoking the superclass constructor.
Inheritance models vary by language. In languages with single inheritance (such as Java and C#), each class
In type systems used by functional languages, a related concept is a superclass constraint in type classes.
Semantic relationships are often described as parent, base, or ancestor in documentation and diagrams. The universal
Note: the term 'superclasss' is a common misspelling; the standard plural is 'superclasses'.