Jump to content

Polymorphism

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Magnus Manske (talk | contribs) at 11:38, 12 October 2001 (Added biology and OOP meaning). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In materials science polymorphism is the ability of a solid material to exist in more than one form or crystal structure. Diamond and graphite are examples of polymorphs of carbon. α-ferrite, austenite, and δ-ferrite are polymorphs of iron. When found in elemental solids the condition is also called Allotropy.


In biology multiple alleles of a gene within a population, usually expressing different phenotypes, are called polymorphism.


In object-orientated programming languages, polymorphism describes mathods of different objects that have the same name (and usually the same parameter list), so that calling a.add(1) invokes a different function than b.add(1).


/Talk