Search⌘ K
AI Features

Subtyping and Inheritance

Learn to understand and implement subtyping and inheritance within JavaScript and other object-oriented programming languages. This lesson explains type hierarchies, multiple inheritance, and their practical use in building structured and efficient front-end web applications without third-party frameworks.

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; ...