Overloading Functions

In this lesson, we'll see the same function perform different operations based on its arguments.

Each function has a specific number of arguments which have to be passed when calling it. If we increase or decrease the number of arguments in the call, we’ll get a compilation error:

Get hands-on with 1400+ tech skills courses.