Java Reference
In-Depth Information
Overloading method
When two or more methods are defined in the same place and the name defined is same
but the parameters are different. This method is an overloading method. This provides poly-
morphism in java.
Class overload1
Void test () {
System.out.println (“no parameter”);
Void test (int a)
System.out.println (“a: “+ a);
Search WWH ::

Custom Search