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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started