Question: This question should be solved using JAVA!! You will be working with geometrical shapes such as: Circle, Square, Rectangle, Parallelogram, and Triangle. You will need
This question should be solved using JAVA!!
You will be working with geometrical shapes such as: Circle, Square, Rectangle, Parallelogram, and Triangle.
You will need to create geometrical shapes and calculate their perimeters. Therefore, you must develop java classes for all the geometrical shapes mentioned above (put all your classes in a package named shapes). Each class must be able to calculate the shapes perimeter. For each class, you must provide implementations for toString(), at least one constructor, setters/getters, and the documentations for the entire class.
You should also provide an interface Shape as the root of the inheritance hierarchy, and design the appropriate is-a relationships among the above-mentioned classes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
