Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 45)
45.
How can you achieve method overloading in Python using default values?
By using the @overload decorator
By explicitly specifying the data type of method parameters
By defining multiple methods with different numbers of parameters and providing default values
Method overloading is not possible in Python
Answer: Option
Explanation:
Method overloading in Python can be achieved by defining multiple methods with different numbers of parameters and providing default values for some parameters.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.