For Example:
>>> class Point():
... def __init__(self,x,y):
... self.x = x
... self.y = y
... def __mul__(self,other):
... return self.x * other.y - self.y*other.x
...
>>>
>>> p1 = Point(1,2)
>>> p2 = Point(3,4)
>>> p1*p2
-2
>>>
In this example, we create a point class that contains two instance variables x and y coordinate. Here, we overload ‘*’ operator on objects of point class as Cross Product of two vectors with one end as the origin.