Inheritance (object-oriented programming)
Concept in 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. It is 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.
Nº Q212542 ★★
Uncommon · Knowledge
Inheritance (object-oriented programming)
Concept in 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. It is 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.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
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. It is 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. Inheritance allows programmers to create classes that are built upon existing classes, to specify a new implementation while maintaining the same behaviors (realizing an interface), to reuse code and to independently extend original software via public classes and interfaces. The relationships of objects or classes through inheritance give rise to a directed acyclic graph. An inherited class is called a subclass of its parent class or super class. The term inheritance is loosely used for both class-based and prototype-based programming, but in narrow use the term is reserved for class-based programming (one class inherits from another), with the corresponding technique in prototype-based programming being instead called delegation (one object delegates to another). Class-modifying inheritance patterns can be pre-defined according to simple network interface parameters such that inter-language compatibility is preserved. Inheritance should not be confused with subtyping. In some languages, generally statically-typed class-based OO languages, like C++, C#, Java, and Scala, inheritance and subtyping agree, whereas in others they differ. In general, subtyping establishes an is-a relationship, whereas inheritance only reuses implementation and establishes a syntactic relationship, not necessarily a semantic relationship (inheritance does not ensure behavioral subtyping). To distinguish these concepts, subtyping is sometimes referred to as interface inheritance (without acknowledging that the specialization of...
Text: Wikipédia, CC BY-SA 4.0. · Image: Piervit (CC BY-SA 3.0) ·
Related cards
-
P
Partible inheritance
System dividing an estate between heirs
Nº Q7140409 ★★
Not listed
-
P
Primitive (phylogenetics)
(of a lineage or taxon) one that is inherited from the common ancestor of a clade (or clade group) and has undergone little change since
Nº Q7243545 ★
Not listed
-
Lamarckism
Hypothesis that an organism can pass on characteristics that it has acquired through use or disuse during its lifetime to its offspring
Nº Q208800 ★★★
Not listed
-
I
Is-a
Subsumption relationship between abstractions, especially inheritance of object-oriented programming.
Nº Q1101080 ★
Not listed
-
Legacy system
Old computing technology or system that remains in use and may be out of date or in need of replacement
Nº Q445962 ★
Not listed
-
X-linked dominant inheritance
Mode of inheritance
Nº Q3731276 ★
Not listed
-
Object-oriented programming
Programming paradigm based on the concept of objects
Nº Q79872 ★★★★
Not listed
-
A
Agent-oriented programming
Programming paradigm centred on the concept of software agents
Nº Q139008 ★
Not listed
-
Self (programming language)
Programming language
Nº Q1864529 ★
Not listed
-
Polymorphism (computer science)
In programming languages and type theory, accessing different types using a common interface
Nº Q3240252 ★★★
Not listed
-
Object-oriented analysis and design
Technical approach for analyzing and designing an application, system, or business
Nº Q1237775 ★
Not listed
-
R
Resource acquisition is initialization
Programming idiom for resource management that ties access to a resource to an object's lifetime
Nº Q1714630 ★★
Not listed
-
Obsolescence
State of being which occurs when an object, service, or practice is no longer wanted even though it may still be in good working order
Nº Q282744 ★★★
Not listed
-
L
Language-oriented programming
Programming paradigm
Nº Q6486619 ★
Not listed
-
Reincarnation
Concept of rebirth in some religions and cultures
Nº Q128593 ★★★★
Not listed
-
Constructor (object-oriented programming)
Special method used for initializing a newly allocated object in object-oriented programming
Nº Q1049476 ★
Not listed
-
Compiler
Computer program that transforms source code into object code
Nº Q47506 ★★★
Not listed
-
X
X-linked inheritance
X-linked inheritance
Nº Q2597344 ★
Not listed