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
Get step-by-step solutions from verified subject matter experts
