Question: QUESTION 4 [25 Marks] a. Create a class Rectangle that has two data members, width and height; and two overloaded class member functions, drawshape() and
![QUESTION 4 [25 Marks] a. Create a class Rectangle that has](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f30e498b8c4_93766f30e491a8ef.jpg)
QUESTION 4 [25 Marks] a. Create a class Rectangle that has two data members, width and height; and two overloaded class member functions, drawshape() and drawshape(type width, type height). Show how function overloading of member function works in this class [20 marks] b. In the main () function, show how the object of type Rectangle access the overloaded function. [5 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
