In the main function, we have declared a list that has two objects in it. The first object is a Rectangle with width 6 and height 10. The second object is a Circle of radius 7.
The getArea() method returns the area of the respective shape. This is Polymorphism: having specialized implementations of the same methods for each class.