Sail E0 Webinar
Question
Which of the following statements is true?
Options:
A .  The __new__() method automatically invokes the __init__ method
B .  The __init__ method is defined in the object class
C .  The __eq(other) method is defined in the object class
D .  The __repr__() method is defined in the object class
Answer: Option C


The __eq(other) method is called if any comparison takes place and it is defined in the object class.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers