In general, polymorphism describes multiple possible states for a single property (it is said to be polymorphic).
Polymorphism can be:
In materials science polymorphism is the ability of a solid material to exist in more than one form or crystal structure. Diamond, graphite and the Buckyball 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 computer programming, polymorphism is a mechanism allowing a given function to have many different specifications, depending on the type(s) to which it is applied.
This is a disambiguation page, a list of pages that otherwise might share the same title. If an article link referred you to this title, you might want to go back and fix it to point directly to the intended page.
Polymorphism in the language ML and its close relatives is predicative.
In these languages, subtyping polymorphism (sometimes referred to as dynamic polymorphism or dynamic typing) allows a function to be written to take an object of a certain type T, but also work correctly if passed an object that belongs to a type S that is a subtype of T (according to the Liskov substitution principle).
This type of polymorphism is common in object-oriented programming languages, many of which allow operators to be overloaded in a manner similar to functions (see operator overloading).
Polymorphism (computer science), a mechanism allowing a given function to have many different specifications, depending on the type(s) to which it is applied.
Polymorphism (materials science), the ability of a solid material to exist in more than one form or crystal structure.
Polymorphism (plant science), the ability of a plant to produce both quiescent and dormant seeds.