1.

overload the ?greater than? comparison operator which compares the magnitude of two points from origin.

Answer»

For example, the + operator will, PERFORM arithmetic addition on TWO ... Now, RUN the CODE and try to add two points in Python shell. .... We can overload comparison operators as WELL.



Discussion

No Comment Found

Related InterviewSolutions