Solutions will be available when this assignment is resolved, or after a few failing attempts.
Complete the given shape classes to compute the correct area for all of them:
Are created by passing
radius in the constructor. The area of a circle is equals to
3.14 * radius * radius (we round
They're created by passing
width and area is equals to
height * width.
Squares are created by passing the
side measure of the square and the area is
side * side .
IMPORTANT Squares are subclasses of
Square class should NOT implement the
area method, only the
c = Circle(radius=10) c.area() # 314.0 (3.14 * 10 * 10) s = Square(side=4) s.area() # 16 (4 * 4) r = Rectangle(height=4, width=3) r.area() # 12 (4 * 3)