Question: Write a java program Define an interface named GeometricShape with a single method named area1 that calculates the area of the geometric shape: Implement the
Write a java program Define an interface named GeometricShape with a single method named area1 that calculates the area of the geometric shape:
Implement the GeometricShape interface for Rectangle, Circle and Triangle class.
Implement a class CalculateAreas that has a function that takes Geometricshape type array of objects and builds an array of (double values) values for each corresponding shapes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
