...

/

Challenge 5: Inheritance

Challenge 5: Inheritance

Solve an exercise on inheritance to brush up on the previous inheritance concepts.

Problem Statement

The code for the Rectangle class is implemented below:

  1. Create a Square class as a ​subclass of Rectangle.

  2. Implement the ...