ADD A FOOTER
METHODOVERLOADING
If class has multiple methods having same name but
different in parameters, it is known as Method
Overloading.
• If we have to perform only one operation, having same
name of the methods increases the readability of the
program.
Method overloading increases the readability of
the program.
MM.DD.20XX
4.
ADD A FOOTER
Differentways to overload the
method
MM.DD.20XX
There are three ways to overload the method in java
o By changing number of arguments
o By changing the data type
o By Changing the order of parameters
5.
ADD A FOOTER
5
1)Method Overloading: changing no. of
arguments
MM.DD.20XX