हिंदी

State whether the following is function overloading or not. Explain why or why not. def (a,b): def(x,y) :

Advertisements
Advertisements

प्रश्न

State whether the following is function overloading or not. Explain why or why not.

def (a,b):
def(x,y) :

स्पष्ट कीजिए
Advertisements

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Concept of Object Oriented Programming - EXCERCISE [पृष्ठ ३८]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 2 Concept of Object Oriented Programming
EXCERCISE | Q 14. a. | पृष्ठ ३८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×