Answered! Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure…

Shape Two DimensionalShape Circle Square Triangle Fig. 9.3 I nheritance hierarchy for Shapes Three DimensionalShape Sphere Cube TetrahedronCreate 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.

Don't use plagiarized sources. Get Your Custom Essay on
Answered! Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure…
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Order Essay

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

Expert Answer

 The diagrams are included in the pictures below.

Answered! Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure... 1Answered! Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure... 2Answered! Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure... 3

Still stressed from student homework?
Get quality assistance from academic writers!