Inheritance¶
Core Idea¶
A derived entity receives structure, behaviour, or claims from a parent along a lineage relation by default, while being permitted to add, override, or specialize some portion of what it received. The state of any derived system is parent contribution plus override delta.
How would you explain it like I'm…
Passed Down From Parents
Get It, Then Tweak It
Transmit With Modification
Tensions in Practice¶
Broad Use¶
- Object-oriented programming: a subclass inherits its superclass's methods and overrides selected ones, constrained by Liskov substitutability.
- Biology: Mendelian, polygenic, epigenetic, and cultural inheritance transmit traits down a lineage.
- Law: property passes by will or intestacy, titles by succession, and binding precedent down a court hierarchy.
- Taxonomy: Linnaean and cladistic classification carry traits down a phylogenetic tree as IS-A relations.
- Religion: apostolic succession, rabbinic ordination chains, and isnād chains in hadith transmission.
- Real estate: water rights, easements, and covenants inherited with land and binding successive owners.
Clarity¶
It makes visible which parts of a system are still the parent and which are specialized child, exposing the defaults a derivative "got for free" and never questioned.
Manages Complexity¶
Instead of restating every child fully, you describe the parent once and only the delta — the reason taxonomies and class libraries are compact, paid for with standing downward coupling.
Abstract Reasoning¶
It supports substrate-neutral questions: what is inherited by default, what is overridden and why, is the override substitutable, and how brittle is a deep or multi-parent lineage.
Knowledge Transfer¶
- Software → organizations: "composition over inheritance" — replace brittle lineage-by-default with explicitly assembled parts — recurs in modular org design.
- Software ↔ evolution ↔ law: the diamond problem, homologous-vs-analogous traits, and multiple-doctrine reconciliation are one shape solved by C3 linearization, cladistic parsimony, and lex specialis.
- Law ↔ genetics ↔ software: lineage repair — overruling a precedent, correcting a deeply-inherited allele, refactoring a base class — is recurringly hard because so much inherited from the defective parent.
Example¶
A tax code inheriting concepts from common law and Roman law, adding a
"qualified business income" deduction as a delta while inheriting the rest, has
the same structure as Mammal.feed_young inherited by Primate and overridden
by Human.
Relationships to Other Abstractions¶
Current abstraction Inheritance Prime
Parents (1) — outgoing typed relations
-
Inheritance is a kind of, typical Dependency Prime
Inheritance is the specific dependency of a derivative on a parent ALONG A LINEAGE, with default carry-over and substitutability — a specialization of bare dependency ('not dependency in general').
Children (12) — abstractions linked here by typed relations
-
Copying Mechanism Domain-specific is a kind of Inheritance
At each step, the new vertex is a derivative of a sampled prototype for purposes of adjacency: neighborhood structure carries over by default or probability, with selective deletion, addition, or rewiring.
-
Line of hereditary succession Domain-specific is a kind of Inheritance
Line of Hereditary Succession instantiates Inheritance because it governs prospective transfer of entitlement through descent while adding an ordered candidate line.
-
Lineage (genetic) Domain-specific is a kind of Inheritance
A genetic lineage literally transmits structure from ancestors to descendants while mutation, segregation, and recombination provide selective modification; the evidential and population-genetic apparatus supplies the specialization.
-
Matrilineal Succession Domain-specific is a kind of Inheritance
Matrilineal Succession strictly specializes Inheritance.
-
Mitosis Domain-specific is a kind of Inheritance
Mitosis literally presupposes transmission of replicated chromosomal structure down a cell lineage; it adds a eukaryotic segregation mechanism rather than being generic Inheritance.
- Most recent common ancestor Domain-specific is a kind of Inheritance
It remains its own entry because its identity is fixed by the sampled organisms individuals or sequences, ancestry relation and lineage type, pedigree species tree or gene genealogy, common-ancestor condition, recency ordering, coalescence node, time-to-MRCA estimate and clock model, recombination and uncertainty and distinction from universal and last universal common ancestor.
- Saisine Domain-specific is a kind of Inheritance
French seisin transmits an estate position to designated heirs along a default lineage at death, subject to later election.
- Sequence homology Domain-specific is a kind of Inheritance
Homologous sequences inherit sequence material from an ancestral lineage.
- Shelter Rule Domain-specific is a kind of Inheritance
**Inheritance** is the broader abstraction this entry instantiates.
- Transfer learning Domain-specific is a kind of Inheritance
What makes it its own entry: A machine-learning strategy that reuses representations, parameters or examples learned in a source task or domain to improve learning in a related target task.
- Virtual class Domain-specific is a kind of Inheritance
It remains its own entry because its identity is fixed by the language and version, enclosing class and object, nested class declaration, inheritance and override rule, runtime type selection, member construction and type-safety and substitution semantics.
- Yo-yo Problem Domain-specific presupposes Inheritance
Cross-level method selection requires lineage-based default carry-over with selective descendant override or extension.
Hierarchy path (1) — routes to 1 parentless root
- Inheritance → is a kind of, typical Dependency
Not to Be Confused With¶
- Inheritance is not Composition because inheritance derives an entity from a parent along a lineage (is-a-kind-of, default carry-over) whereas composition assembles a whole from independently chosen sub-parts (has-a).
- Inheritance is not Hierarchy because inheritance is a transmission that carries structure downward with override whereas a hierarchy is a static ranking of levels; the hierarchy is the shape, the inheritance is the carrying-over.
- Inheritance is not Specialization because specialization is only the override component whereas inheritance also carries the un-overridden defaults forward by default and supports substitutability.