Question: Given the abstract class below public abstract class Shape l/compute and print the area of the shape abstract void getArea(); } Write a subclass Rectangle

Given the abstract class below public abstract class Shape l/compute and print the area of the shape abstract void getArea(); } Write a subclass Rectangle that inherits from Shape class and overrides the getArea() method in Shape class. The Rectangle class has two fields - length and width. (7 points) For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
