Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 43)
43.
How does Python support method overloading?
By allowing multiple methods with the same name but different parameters
By using the @overload decorator
By explicitly specifying the data type of method parameters
Method overloading is not supported in Python
Answer: Option
Explanation:
Python does not support method overloading in the traditional sense, as methods with the same name in a class will override each other.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.