Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Business Industries Finance Tax

Home > Method overloading


Method overloading a feature found in various programming languages such as C++ 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 necessary to create different functions for integer and floating point.

Method overloading is usually associated with statically-typed programming languages which enforce type checking in function calls.

This article is a stub. You can help Wikipedia by [ ṣlocalurl: : |action=edit}} expanding it].





Non User