If you want to "overload" a function. Do
def area(shape):
return shape.area()
and implement it appropriately in your type. def area(shape):
return shape.area()
and implement it appropriately in your type.No comments yet.