Problem

Describe and give an example of each of the following types of polymorphism:

  • Ad-hoc polymorphism
  • Parametric polymorphism
  • Subtype polymorphism

Solution

The explanation and examples of these different types of polymorphism is covered here: