Calculate Rectangle Area Using Class

# Introduction In this lab, you need to create a program that calculates the area of a rectangle using the formula `area = length * breadth` by defining a `Rectangle` class with a constructor and a `calculateArea()` method, and then creating an object of the class in the `main()` method to call the `calculateArea()` method.

|
60 : 00

Click the virtual machine below to start practicing