Python Programming - Classes - Discussion
Discussion Forum : Classes - General Questions (Q.No. 18)
18.
What is the purpose of the
__eq__ method?
Answer: Option
Explanation:
The
__eq__ method is called when an object is compared for equality using the == operator. It allows customizing the behavior of equality checks for objects.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers