Inheritance (object-oriented Programming)

Inheritance (object-oriented Programming)

In object-oriented programming (OOP), inheritance is a way to reuse code of existing objects, or to establish a subtype from an existing object, or both, depending upon programming language support. In classical inheritance where objects are defined by classes, classes can inherit attributes and behavior from pre-existing classes called base classes, superclasses, parent classes or ancestor classes. The resulting classes are known as derived classes, subclasses or child classes. The relationships of classes through inheritance gives rise to a hierarchy. In prototype-based programming, objects can be defined directly from other objects without the need to define any classes, in which case this feature is called differential inheritance.

The inheritance concept was invented in 1968 for Simula.

Read more about Inheritance (object-oriented Programming):  Subclasses and Superclasses, Inheritance Vs Subtyping, Limitations and Alternatives, Issues

Famous quotes containing the word inheritance:

    Every third year you shall bring out the full tithe of your produce for that year, and store it within your towns; the Levites, because they have no allotment or inheritance with you, as well as the resident aliens, the orphans, and the widows in your towns, may come and eat their fill so that the LORD your God may bless you in all the work that you undertake.
    Bible: Hebrew, Deuteronomy 14:28,29.