ExamVeda
Login
Home
Advanced OOP Concepts
?

What is the purpose of the __eq__() method in Python classes?

Answer & Solution
Correct Answer: Option B
The __eq__() method defines how instances of a class are compared for equality using the == operator.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.