1.

Which function overloads the >> operator?(a) __more__()(b) __gt__()(c) __ge__()(d) none of the mentionedI have been asked this question at a job interview.This question is from Operator Overloading in chapter Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer»

Right ANSWER is (d) NONE of the mentioned

Easy explanation - __rshift__() overloads the >> OPERATOR.



Discussion

No Comment Found

Related InterviewSolutions