0% found this document useful (0 votes)
11 views3 pages

Method Overloading in Java Explained

Method overloading in Java allows a class to have multiple methods with the same name but different parameters. This practice enhances the readability of the program and can be achieved by changing the number of arguments or their data types. The document concludes with a note about the next lecture.

Uploaded by

abhimanyu thakur
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Method Overloading in Java Explained

Method overloading in Java allows a class to have multiple methods with the same name but different parameters. This practice enhances the readability of the program and can be achieved by changing the number of arguments or their data types. The document concludes with a note about the next lecture.

Uploaded by

abhimanyu thakur
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JAVA

Method Overloading
JAVA: Method Overloading in Java

➤ Method Overloading : If a class has multiple methods having


same name but different in parameters, it is known
as Method Overloading.
➤ Method overloading increases the readability of the program.
➤ How to Achieve Method Overloading?
➤ By changing number of arguments.
➤ By changing the data type.
Will see you in Next Lecture…

See you in next lecture …

You might also like