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 ???
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 ???