Question: Problem 3 (15 points): Write 1 final subclass, this time for the rectangle class. Write the subclass Square, which should take 1 input: the side
Problem 3 (15 points):
Write 1 final subclass, this time for the rectangle class. Write the subclass Square, which should take 1 input: the side length of the square. The square subclass should also implement methods to calculate its area and perimeter.
Finally, add Docstring for all methods inside each class (excluding constructors) and draw a UML diagram of the entire OOP system. Make sure to include arrows with superclass/subclass relationships.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
