Question
java language pls We need to implement a GeometricForms java interface composed of 3 abstract methods: double getAres0. double getPerimeter0, Void displayO, Create the Rectangle
java language pls
We need to implement a "GeometricForms" java interface composed of 3
abstract methods:
double getAres0.
double getPerimeter0,
Void displayO,
Create the Rectangle java class implementing the GeometricForms interface. In
fact, the display method should print the attribute values, perimeter and area.
A circel is a geometric form with one attribute: radius (double).
Create the Circel java class implementing the GeometricForms interface. In fact,
the display method should print the attribute values, perimeter and area.
Create the main class (TestForms) able to :
- Create an array of 6 GeometricForms called TabForm;
- Insert 4 Rectangles and 2 Circles into the tha TabForm;
- Display only the Rectangle objects.
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