Subtyping and Inheritance

Learn about subtyping and inheritance.

Subtyping and inheritance in computational languages

Subtyping and inheritance are supported in Object-Oriented Programming (OOP), database languages (such as SQL99), XML schema definition language, and other computational languages in various ways and to different degrees. At its core, subtyping in computational languages is about defining type hierarchies and the inheritance of features. These include properties, constraints, and methods in OOP; table columns and constraints in ...