Question: please use java 2. The Shape Abstract Class Classes Names: Lab8Main (main class) Shape Circle Square Create an abstract class called Shape with abstract methods

 please use java 2. The Shape Abstract Class Classes Names: Lab8Main

please use java

2. The Shape Abstract Class Classes Names: Lab8Main (main class) Shape Circle Square Create an abstract class called Shape with abstract methods getAreal) and getme Write two of its subclasses Circle and Square. Override these methods in the Circle and Square classes. In the main method (LabExercise8 class), instantiate an object of the Circle class of radius 4 units, and an object of the Square class of side 5 units. The sample output is shown for your reference. Sample Output: Area of the circle is 50.2656 Area of the Square is 25.0 BUILD SUCCESSFUL (total time: 1 second)

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!