0

What is method overloading in java.

In a class more than one method with same method name and different number of parameters, number of data type, sequence or order, method signature. Why use 1.increase the code readability 2.reduce the complexity of programe. 3.to achieve compile time polymorphisms EXAMPLES int vikash(int n) { } String vikash(String name) { } Return type does not involve in method overloading

31st Dec 2018, 10:23 AM
Vikash Kumar
Vikash Kumar - avatar
2 Respostas
0
Facebook, Gmail example of method overloading
31st Dec 2018, 10:24 AM
Vikash Kumar
Vikash Kumar - avatar
0
Method Overloading tutorial by Danijel https://code.sololearn.com/clESV5jjvXuA/?ref=app The catalog for full Danijel's tutorial series https://code.sololearn.com/WKFF4vOCr3mi/?ref=app
31st Dec 2018, 10:24 AM
Gordon
Gordon - avatar