AI Features

Challenge 1: Implement Rectangle Class Using the Encapsulation

In this challenge, you will implement a rectangle class using the concepts of encapsulation.

Problem statement

You are given a partially completed code of a Rectangle class in the editor. Implement the class by completing the tasks below.

Task 1

Implement a constructor to initialize the values of two private properties: ...