...

/

Challenge 1: Implement a Rectangle Class

Challenge 1: Implement a Rectangle Class

This lesson covers a basic exercise on classes and constructors.

Problem Statement

  1. Implement a class named Rectangle to store the coordinates of a rectangle given the top-left corner (x1, y1) and the bottom-right corner (x2, ...