1.

Predict the output of the following program. Also state which concept of OOP is being implemented?def sum(x,y,z):print “sum= ”, x+y+zdef sum(a,b):print “sum= ”, a+bsum(10,20)sum(10,20,30)

Answer»

Type Error: sum() takes exactly 3 arguments (2 given)

Concept: Polymorphism [Function Overloading]



Discussion

No Comment Found