Question: 2. Implement the superclass Shape and its subclasses Circle, Rectangle and Square as shown in the following UML class diagram, note that the compareTo method

2. Implement the superclass Shape and its subclasses Circle, Rectangle and Square as shown in the following UML class diagram, note that the compareTo method will compare based on Create an array list of 5 different shapes, then sort the list and print the type of each object with its area
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
