mdn.go-v.org

Inheritance

Inheritance is a major feature of object-oriented programming. Data abstraction can be carried up several levels, that is, classes can have superclasses and subclasses.

source: MDN Web Docslicence: CC BY-SA 2.5+ (MDN)database: /home/dbs/mdn.dbmode: tablerecords: 14753 (max_rowid)citation: https://developer.mozilla.org/

Inheritance is a major feature of object-oriented programming. Data abstraction can be carried up several levels, that is, classes can have superclasses and subclasses.

Full text

Inheritance is a major feature of object-oriented programming. Data abstraction can be carried up several levels, that is, classes can have superclasses and subclasses.

As an app developer, you can choose which of the superclass's attributes and methods to keep and add your own, making class definition very flexible. Some languages let a class inherit from more than one parent (multiple inheritance).

## See also

- [Inheritance and the prototype chain](/docs/Web/JavaScript/Guide/Inheritance_and_the_prototype_chain)

Fields

page_typeglossary-definition
tags
source: MDN Web Docslicence: CC BY-SA 2.5+ (MDN)year: —id: Glossary/Inheritancecitation: https://developer.mozilla.org/en-US/docs/Glossary/Inheritance

JSON · full text · full-text JSON