Pavalesh
Pavalesh

Reputation: 257

Parametric Polymorphism in java

What is parametric polymorphism in java

Upvotes: 1

Views: 1496

Answers (2)

F.X
F.X

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

Stephen C
Stephen C

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

Related Questions