Overloading
From CSSEMediaWiki
(Difference between revisions)
Erikaveiga (Talk | contribs)
(New page: Overloading occurs when several methods have the same names with different method signatures. In the example above, the same method speak can have 2 different forms or method signatures. T...)
Newer edit →
(New page: Overloading occurs when several methods have the same names with different method signatures. In the example above, the same method speak can have 2 different forms or method signatures. T...)
Newer edit →
Revision as of 12:32, 3 August 2009
Overloading occurs when several methods have the same names with different method signatures. In the example above, the same method speak can have 2 different forms or method signatures. The first one only includes a single parameter word, the second one includes 2 parameters: word and language.
Overloading lets two functions/method share a name if they differ in the number and or the type of arguments; two functions may not differ only in their return type