Polymorphism (computer science): Difference between revisions

Content deleted Content added
More inline with reality
Tags: Visual edit Mobile edit Mobile web edit
m Introduction: Added a preposition
Line 7:
The most commonly recognized major classes of polymorphism are:
* ''[[Ad hoc polymorphism]]'': defines a common interface for an arbitrary set of individually specified types.
* ''[[Parametric polymorphism]]'': not specifying concrete types and instead use abstract symbols that can substitute for any type.
* ''[[Subtyping]]'' (also called ''subtype polymorphism'' or ''inclusion polymorphism''): when a name denotes instances of many different classes related by some common superclass.<ref name="gbooch">{{cite book |last1=Conallen |first1=J. |last2=Engle |first2=M. |last3=Houston |first3=K. |last4=Maksimchuk |first4=R. |last5=Young |first5=B. |last6=Booch |first6=G. |author6-link=Grady Booch |title=Object-Oriented Analysis and Design with Applications |publisher=Pearson Education |edition=3rd |date=2007 |isbn=9780132797443 |pages= }}</ref>