0

What is method overloading in java?

i want to known about method overloading in depth.

27th Nov 2016, 3:21 AM
shivaniparmar
shivaniparmar - avatar
2 Respostas
+ 12
Method overloading is when you use the same name when declaring a function(method). It should be noted that the function can not change its type. i.e. int function (){ } //can not be changed to void function (){ }
27th Nov 2016, 3:46 AM
Brandon Baldwin
Brandon Baldwin - avatar
0
i think method overloading is create methods that have same name but different parameters lists and definition, this is called method overloading
27th Nov 2016, 3:54 AM
shivaniparmar
shivaniparmar - avatar