What is overloading in function means? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is overloading in function means?

okay it says you can ads more than 2 data types,but what is its use?

16th Feb 2018, 4:02 AM
Jay Jay
Jay Jay - avatar
1 Answer
+ 3
In java it means using the same method (function) multiple times by changing the parameters used in those methods. example. methodA (apples, oranges, pears) methodA (apples, oranges) methodA (apples)
16th Feb 2018, 4:33 AM
Tim Millar
Tim Millar - avatar