4 ms·
If you want to "overload" a function. Do def area(shape): return shape.area() and implement it appropriately in your type.
by enricozb 7y ago
If you want to "overload" a function. Do
def area(shape):
return shape.area()
and implement it appropriately in your type.