Method overloading

I’m not sure where the method overloading is happening. There’s only one “demo” method.

Type your question above this line.



Method overloading is happening at the function call. Every time we call the function demo, we pass different number of arguments and this is called method overloading. Either we can have same function name with different number of parameters or the case we have where we’re calling a function multiple number of times with different numbers of parameters.

If you still face any confusion, feel free to ask :slight_smile:

1 Like