Question: use jGRASP Create an abstract class called GeometricFigure. Each figure includes a height, a width, a figure type, and an area. Include an abstract method

use jGRASP

Create an abstract class called GeometricFigure. Each figure includes a height, a width, a figure type, and an area. Include an abstract method to determine the area

of the figure. Create two subclasses called Square and Triangle. Create an appli- cation that demonstrates creating objects of both subclasses, and store them in an

array. Save the files as GeometricFigure.java, Square.java, Triangle.java, and UseGeometric.java.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!