Description: Write a parent class graphics (Shape) (no properties, methods: calculating perimeter, area calculation), two sub-categories: rectangular (Rect attributes: length, width method: calculation of perimeter, area calculation), round (Circle Properties : radius method: calculation of perimeter, area calculation) and write a test class TestShape, including the main method to create each type of object, parameterized constructor for the attribute assignment, the output of each graphic in the perimeter and area.
To Search:
File list (Check if you may need any files):
TestShape.java