Question: 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
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 application 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
3.48 Rating (164 Votes )
There are 3 Steps involved in it
public abstract class GeometricFigure protected int height protected int width protected String figu... View full answer
Get step-by-step solutions from verified subject matter experts
