posted 20 years ago
-->> "http://cse.spsu.edu/pfeibish/documents/Java%20Chapter%207%20pt%202.ppt#289,11,Overloading methods (pg 187)" <--
paste the link in the browser and see... says cant change return type!
same time... the below code is error free:
public class test{
public void setvar(int a, int b, int c)
{
}
private void setvar(int a, float b, int c){
}
protected void setvar( int a, int b , float c){
}
public int setvar( int a, int b, double c)
{
return a;
}
public int setvar(int ab, char c, int d){
return d;
}
}