Sunday, June 17, 2012

Overloading


Overloading

Method Overloading :
Writing more than one method with the same name by changing the parameters is called Method Overloading.

Rules :
1. Method name must be same. 
2. We must change the parameters as follows.
» Number of parameters.
» Order of parameters.
» Type of parameters.
3. Return type may be anything. 

No comments:

Post a Comment