Fill in totalArea so that it returns the sum of the areas of all the shapes.
totalArea
The array is typed Shape[] — the interface — yet each element runs its own area(). The program prints 9.14.
Shape[]
area()
9.14