Python Programming - Polymorphism - Discussion

Discussion Forum : Polymorphism - General Questions (Q.No. 6)
6.
What is operator overloading?
The ability of a function to take different types of arguments
The ability of a class to inherit from multiple classes
The ability of an object to take on multiple forms or types
The ability to define custom behavior for operators in a class
Answer: Option
Explanation:
Operator overloading in Python allows you to define custom behavior for operators in a class by implementing special methods like __add__(), __sub__(), etc.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.