what's the point of method overloading?

Posted by David on Programmers See other posts from Programmers or by David
Published on 2014-05-31T21:10:06Z Indexed on 2014/06/01 3:47 UTC
Read the original article Hit count: 333

I am following a textbook in which I have just come across method overloading. It briefly described method overloading as: when the same method name is used with different parameters its called method overloading.

From what I've learned so far in OOP is that if I want different behaviors from an object via methods, I should use different method names that best indicate the behavior, so why should I bother with method overloading in the first place?

© Programmers or respective owner

Related posts about java

Related posts about object-oriented