Question: Consider the following code public static void add(int a, int b) { return a+b; } public static void add(String a, String b) { return a+b;
Consider the following code public static void add(int a, int b) \{ return a+b; \} public static void add(String a, String b) \{ return a+b; \} This is an example of... Select one: a. Ad-hoc polymorphism b. Parametric polymorphism
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
