Fill in totalArea so that it returns the total area. Here the array type is the abstract class rather than an interface — the polymorphism works exactly the same way.
totalArea
The program prints 9.14.
9.14