Polymorphism is an actively used design pattern created in 1960. In programming languages and type theory, polymorphism is the provision of a single interface to entities of different types or the use of a single symbol to represent multiple different types.The most commonly recognised major classes of polymorphism are: Ad hoc polymorphism: defines a common interface for an arbitrary set of individually specified types. Parametric polymorphism: when one or more types are not specified by name but by abstract symbols that can represent any type. Subtyping (also called subtype polymorphism or inclusion polymorphism): when a name denotes instances of many different classes related by some common superclass.. Read more on Wikipedia...

59Years Old
  • Polymorphism ranks in the top 25% of entities I track
  • the Polymorphism wikipedia page
  • Polymorphism first appeared in 1960
  • Have a question about Polymorphism not answered here? Email me and let me know how I can help.

Languages with Polymorphism include felix, javascript, pascal

Example from felix:

// overloads
fun f (x:double) => x +42.1;
fun f (x:int) =>  x + 1;
fun f (x:string) => x + "!";

Example from javascript:

"a" + "b"; 1 + 2

Last updated August 9th, 2020

Edit Polymorphism on GitHub