Question: In c++ function rv nts? (3 points) 2. What is the output of the program? (4 points) . Define a class rectangle according to the
function rv nts? (3 points) 2. What is the output of the program? (4 points) . Define a class rectangle according to the requirements below and finis inction. (15 points) The class has two private members x and y with integers. The class has two public member functions: (1) setValues: pass two value embers x and y; (2) calArea: calculate the area of the rectangle. In the main function, define two rectangles: recta (length 2 and width 3) a d width 2), output and compare their areas
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
