मराठी

State whether the following is function overloading or not. Explain why or why not. def(x,y,z) def(e,f)

Advertisements
Advertisements

प्रश्न

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

def(x,y,z)
def(e,f)

स्पष्ट करा
Advertisements

उत्तर

Function overloading (in languages that support it).

The two functions have different signatures because one has three parameters and the other has two parameters. However, in Python, the later definition will overwrite the earlier one.

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. b. | पृष्ठ ३८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×