Advertisements
Advertisements
Question
State whether the following is function overloading or not. Explain why or why not.
def (a,b):
def(x,y) :
Explain
Advertisements
Solution
Not function overloading.
Both functions have the same function signature because each has two parameters. Changing only parameter names from (a, b) to (x, y) does not create an overloaded function.
shaalaa.com
Is there an error in this question or solution?
