Differential inheritance

Differential inheritance

Differential Inheritance is a common inheritance model used by prototype-based programming languages such as JavaScript, Io and NewtonScript. It operates on the principle that most objects are derived from other, more general objects, and only differ in a few small aspects; while usually maintaining a list of pointers internally to other objects which the object differs from.

An Analogy

To think of differential inheritance, you think in terms of what is different. So for instance, when trying to describe to someone how Dumbo looks, you could tell them in terms of elephants: Think of an elephant. Now Dumbo is a lot shorter, has big ears, no tusks, a little pink bow and can fly. Using this method, you don't need to go on and on about what makes up an elephant, you only need to describe the differences; anything not explicitly different can be safely assumed to be the same.

External links

See also



Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Inheritance (object-oriented programming) — In object oriented programming (OOP), inheritance is a way to reuse code of existing objects, establish a subtype from an existing object, or both, depending upon programming language support. In classical inheritance where objects are defined by …   Wikipedia

  • Inheritance (computer science) — In object oriented programming, inheritance is a way to form new classes (instances of which are called objects) using classes that have already been defined. The inheritance concept was invented in 1967 for Simula. [ [http://heim.ifi.uio.no/… …   Wikipedia

  • Non-Mendelian inheritance — Mirabilis jalapa Carl …   Wikipedia

  • Dual inheritance theory — (DIT), also known as gene culture coevolution, was developed in the late 1970s and early 1980s to explain how human behavior is a product of two different and interacting evolutionary processes: genetic evolution and cultural evolution. DIT is a… …   Wikipedia

  • NewtonScript — Paradigm(s) Prototype based Appeared in 1993 Designed by Walter Smith Developer Apple Computer Typing discipline dynamic …   Wikipedia

  • Prototype-based programming — is a style of object oriented programming in which classes are not present, and behavior reuse (known as inheritance in class based languages) is performed via a process of cloning existing objects that serve as prototypes. This model can also be …   Wikipedia

  • Gerald Schatten — (born 1949) is an American stem cell researcher with interests in cell, developmental, and reproductive biology. He is Professor and Vice Chair of Obstetrics, Gynecology and Reproductive Sciences and Professor of Cell Biology and Physiology at… …   Wikipedia

  • native American — native American, adj. a person born in the United States. [1835 45, Amer.] * * * ▪ indigenous peoples of Canada and United States Introduction also called  American Indian,  Amerindian,  Amerind,  Indian,  Aboriginal American,  or  First Nation… …   Universalium

  • Native American — Indian (def. 1). Usage. See Indian, Eskimo. * * * ▪ indigenous peoples of Canada and United States Introduction also called  American Indian,  Amerindian,  Amerind,  Indian,  Aboriginal A …   Universalium

  • Io (programming language) — Infobox programming language name = Io paradigm = object oriented prototype based year = 2002 designer = Steve Dekorte developer = Steve Dekorte (and others) latest release version = 20060704 latest release date = July 4, 2006 typing = dynamic,… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”