Inheritance

Inheritance is a way to define a class by reusing the definition of another class.

Related concepts:  ClassMemberSubtyping

Closest Wikipedia entry:  Inheritance (object-oriented programming) — In object-oriented programming, inheritance is the mechanism of basing an object or class upon another object (prototype-based inheritance) or class (class-based inheritance), retaining similar implementation. Also defined as deriving new classes (sub classes) from existing ones such as super class or base class and then forming them into a hierarchy of classes. In most class-based object-oriented languages like C++, an object created through inheritance, a "child object", acquires all the properties and behaviors of the "parent object", with the exception of: constructors, destructors, overloaded operators and friend functions of the base class.

Misconceptions about Inheritance
16 documented Misconceptions

No known JavaScript misconceptions for this concept

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.