Answer to Question #174484 in Java | JSP | JSF for Jean Claude

Question #174484

(ii)Explain two (2) programming situations that will require the use of overloaded methods [5 marks]


1
Expert's answer
2021-04-01T05:34:10-0400

One of the example where overloaded methods are used in Java itself: there is String class that has a few valueOf methods that accept different arguments and convert the entry value to the String object. The meaning of using such methods is: the business value which they (overloaded methods) are doing are the same, but the possible set of entry arguments might vary. That is why we need to use such programming construction as overloaded methods.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog