educative.io

Educative

Method Overriding chapter

in Method Overriding chapter:
Where we derived child classes (Rectangle ) and (circle ) from Shape.

if i am trying to do Circle(6).sides , it throws error , shouldnt it display 0 .

Since parent class has self.sides=0 ???