FileDocCategorySizeDatePackage
OverLoad.javaAPI DocExample325Sat Nov 25 12:55:44 GMT 2000None

OverLoad

public class OverLoad extends Object
OverLoad demonstrates method overloading

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		myfunc(24,24);
		myfunc(24);
	
static voidmyfunc(int x, int y)

		System.out.println("x = "+x+", y = "+y);
	
static voidmyfunc(int x)

		myfunc(x, 100);		// same as "OverLoad.myfunc(x, 100);"