Method (computer programming): Difference between revisions

Content deleted Content added
nothing
No edit summary
Line 10:
Method overloading on the other hand refers to differentiating the code used to handle a message based on the parameters of the method. If one views the receiving object as the first parameter in any method then overriding is just a special case of overloading where the selection is based only on the first argument.<ref>[http://www.codeproject.com/Articles/16407/METHOD-Overload-Vs-Overriding http://www.codeproject.com/Articles/16407/METHOD-Overload-Vs-Overriding]</ref> The following simple [[Java language|Java]] example illustrates the difference:<ref>{{cite web
| accessdate = 2011-08-12
| author = John Suzukihazrul
| date = 2000-02-18
| ___location = http://www.jguru.com/