Actualités

In class-based object-oriented programming, a supertype is a class that another class descends from. In OOP-speak, we say the subclass inherits from the superclass.
Two of the key concepts in object-oriented programming (OOP) are inheritance and composition. While both can help you reuse code, there are key differences between them.