OverLoadpublic class OverLoad extends Object OverLoad demonstrates method overloading |
Methods Summary |
---|
public static void | main(java.lang.String[] argv)
myfunc(24,24);
myfunc(24);
| static void | myfunc(int x, int y)
System.out.println("x = "+x+", y = "+y);
| static void | myfunc(int x)
myfunc(x, 100); // same as "OverLoad.myfunc(x, 100);"
|
|