Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure above. Each TwoDimensionalShape should contain method getArea to calculate the area of the two-dimensional shape. Each ThreeDimensionalShape should have methods getArea and getVolume to calculate the surface area and volume, respectively, of the three-dimensional shape.
TASK 1: Create class diagram for abstract class Shape.
TASK 2: Create class diagrams for abstract subclasses TwoDimensionalShape and ThreeDimensionalShape which extend abstract superclassShape. TwoDimensionalShape contains method getArea, and ThreeDimensionalShape contains methods getArea and getVolume.
TASK 3: Create class diagrams for concrete classes Circle, Square, Triangle, Sphere, Cube and Tetrahedron.
TASK 4: Specify the instance variables and methods for each class. Please submit your final detailed class diagram as a Word document. Note that if you used UML software to create these diagrams, please use screenshots and include those in the Word document.
Show transcribed image text