what is a superclass

A superclass is a class that is higher up in the class hierarchy and from which other classes, called subclasses or derived classes, inherit properties and methods. The superclass provides common functionality that is shared by its subclasses. In object-oriented programming, inheritance allows subclasses to reuse code from the superclass, promoting code reusability and modularity. The superclass is also known as a base class or parent class.