Can changes in the order of the method parameters be called method
overloading?
Please note that only order of the parameters are changed in below
example. So my question is - Can we call below example is of method
overloading?
public void show(String s, int a){
System.out.println("Test.show(String, int)");
}
public void show(int s, String a){
System.out.println("Test.show(int, String)");
}
No comments:
Post a Comment