posted 20 years ago
Please have a look at this code....
public class Hay {
public int setvar(int a,int b,float c){
}
public int setvar(int a,float b,int c){
return setvar(a,c,b);
}
}
The second method is said to correctly overload the first method. As second method is returning the same parameters as the first method it didn't look convincing,hence I COMPILED IT.It gives a compiler error saying "missing return statement".
Now what am I missing....
TIA