Function overloading: Difference between revisions

Content deleted Content added
3Easy (talk | contribs)
m Constructor overloading reference
FIX must read 'C#' in first paragraph
Line 1:
'''Method overloading''' is a feature found in various [[object oriented]] [[programming language]]s such as [[C Sharp#|C#]], [[C++]] and [[Java (programming language)|Java]] that allows the creation of several [[subprogram|function]]s 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 often necessary to create different functions for integer and floating point numbers.