Python Programming - Polymorphism - Discussion

Discussion Forum : Polymorphism - General Questions (Q.No. 76)
76.
How does Python achieve polymorphism through "operator overloading"?
By explicitly specifying data types for objects
By allowing objects to take on multiple forms based on their behavior
By defining custom behavior for operators in a class
By using static typing to enforce object compatibility
Answer: Option
Explanation:
Python achieves polymorphism through operator overloading by allowing the definition of custom behavior for operators in a class, such as using methods like __add__() for the + operator.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.