Question: QUESTION 6 . If the following methods are declared in a class, which of them fail to compile because of overloading rules? i. public int
QUESTION 6 . If the following methods are declared in a class, which of them fail to compile because of overloading rules? i. public int multiplication (int a, int b) {...} ii. public void multiplication (int a) {...} iii. public float multiplication (float a, int b) {...} iv. public float multiplication (int a, float b) {...} public void multiplication (float a) {...} vi. public int multiplication (int a) {...} V
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
