Question: Create a Java project with a graphical user interface that allows a user to select which shape they wish to work with: - Square -

Create a Java project with a graphical user interface that allows a user to select which shape they wish to work with:

- Square

- Rectangle

- Circle

- Triangle

And they enter the dimensions for the shape and can select to compute the area for the shape.

You are to use a base class "Shape" and then have 4 different classes that inherit from Shape in order to compute the Area. Your calculation for Area shall use the appropriate class's area() method

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!