+ 8
What actually happens is that, when it does p1 + p2 , Python will call p1.__add__(p2) which in turn is Point.__add__(p1,p2) . Similarly, here overload other operators as well.
8th Feb 2018, 8:14 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar