Question: HELP PLEASE C++ 0 Instructions Write a complete program that has the definition of a class Rectangle and a main function. The Rectangle class contains:
HELP PLEASE C++

0 Instructions Write a complete program that has the definition of a class Rectangle and a main function. The Rectangle class contains: - A private data member length of type integer. A private data member width of type integer. A default constructor that assigns the values 5 and 3 to length and width, respectively. An overloading constructor that accepts two arguments oftvpe integer and assigns them to length and width. An overloading constructor that accepts one argument of type integer and assigns it to both length and mom. A member function called gemrea that accepts no parameters and returns the area of the rectangle. In your main function declare an array of FIVE rectangles and initialize it using the following partial initialization IiSlI {Rectangle (10,5) , Rectangle (8,5) , Rectangle (1')} Then use a for loop to display,r the areas of the ve objects in the arra3.r as follows: 1 '4 Additional Notes: Regarding your node's standard output, CodeLab will ignore case errors and will ignore whilespace (tabs, spaces, newlines) altogether
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
