Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1: Develop the abstract class (GeoFigure.java) which will have the following variables: height, width, figureType and area. The class should have the appropriate constructors,
Part 1: Develop the abstract class (GeoFigure.java) which will have the following variables: height, width, figureType and area. The class should have the appropriate constructors, getters, setters, toSting and equals methods and an abstract method named area which will calculate the are of the figure. Part 2: Develop an interface (SidedObject.java) containing a method displaySides) which displays the number of sides of an object. Part 3: Develop two Triangle.java) which extend the class GeoFigure.java and implement the interface SidedObject.java Part 4: Develop an application (DemoGeoFigure.java) that demonstrates both subclasses. Submit all 5 programs. classes (Square java and
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