Jump to content

Function overloading

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 24.193.77.56 (talk) at 19:31, 2 January 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Method Overloading


a feature found in various programming languages such as C_Plus_Plus that allows the creation of several functions with the same name which differ from each other in terms of the type of the input and the type of the output of the function.

An example of this would be a square function which takes a number and returns the square of that number. In this case, it is necesary to create a different function for each type of integer and floating point