Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 785 Bytes

Function Overloading.md

File metadata and controls

24 lines (19 loc) · 785 Bytes

Function Overloading: A contract can have multiple functions of the same name but with different parameter types. This process is called “overloading.”

  1. Overloaded functions are selected by matching the function declarations in the current scope to the arguments supplied in the function call.

  2. Return parameters are not taken into account for overload resolution.


Slide Screenshot

025.jpg


Slide Deck

  • Multiple Functions
  • Same Name, Diff Parameters
  • Function Arguments
  • Match Declarations in Scope
  • Return Variables
    • Not Considered
  • Overloading -> OOP

References