Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
science, polymorphism is a programming language feature that allows
values of different data types to be handled using a uniform interface.
The concept of parametric polymorphism applies to both data types and
functions. A function that can evaluate to or be applied to values of
different types is known as a polymorphic function. A data type that can
appear to be of a generalized type is designated polymorphic data type
like the generalized type from which such specializations are made.
There are several fundamentally different kinds of polymorphism, two of
which were originally informally described by Christopher Strachey in
1967. If the function denotes different and potentially heterogeneous
implementations depending on a limited range of individually specified
types and combination, it is called ad-hoc polymorphism.