Wikipedia states that there are 3 (major) types of Polymorphism. Correlating this definition with my limited understanding of Java Polymorphism, this is the mapping I came up with -
- Adhoc polymorphism - Java Function Overloading (dynamic dispatch).
- Parametric polymorphism - Java Generics.
- Subtyping - Java Function Overriding (static dispatch).
Is this correct?
References - 1. https://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29 2. Polymorphism - Define In Just Two Sentences