25 - Function Overloading
Function Overloading: A contract can have multiple functions of the same name but with different parameter types. This process is called “overloading.”
-
Overloaded functions are selected by matching the function declarations in the current scope to the arguments supplied in the function call.
-
Return parameters are not taken into account for overload resolution.
- Multiple Functions
- Same Name, Diff Parameters
- Function Arguments
- Match Declarations in Scope
- Return Variables
- Not Considered
- Overloading -> OOP