Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions