Question: 10. Correctly overloaded methods must have the same a. return type b. identifier c. parameter list d. All of the above. 11. Methods are ambiguous
10. Correctly overloaded methods must have the same a. return type b. identifier c. parameter list d. All of the above. 11. Methods are ambiguous when they a. are overloaded b. are written in a confusing manner c. are indistinguishable to the compiler d. have the same parameter type as their return type 12. Which of the following pairs of method declarations represent correctly overloaded methods? a. public static void MethodA(int a) public static void MethodA(int b, double c) b. public static void MethodB(double d) public static void MethodB() c. public static double public static double MethodD(int f) d. Two of these are correctly overloaded methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
