Question

Which of the following is an example of parametric polymorphism?

A Method overloading.
B Method overriding.
C Using generics (e.g., List in Java, std::vector in C++).
D Implementing an interface.
E Using abstract classes.
Practice Next

Hey! Ask a query