Reputation: 257
What is parametric polymorphism in java
Upvotes: 1
Views: 1496
Reputation: 159
Sometimes, overloading is also reffered as parametric polymorphism as far as you would have methods with the same name but with different parameters. Usually those methods have the same purpose so you have different (polymorph) ways of calling the same name.
Upvotes: 2
Reputation: 719446
For a good introductory description of parametric polymorphism, refer to this Wikipedia page.
In Java, generics are a form of parametric polymorphism.
Upvotes: 2