Question: C++ Class Create a class called myRectangle With attributes-width, length. Supporting basic operations: . o setWidth: Set the width field o setLength: Set the length
C++ Class

Create a class called myRectangle With attributes-width, length. Supporting basic operations: . o setWidth: Set the width field o setLength: Set the length field Optional -Create a constructor with the width and length as parameters o getArea: Return the area of the rectangle o printArea: Print the area of the rectangle Optional - Add any other attributes and operations. Write a main file to demonstrate the functionalities of your class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
