Question: Solve using C++ a. Create a class Rectangle that has two data members, width and height; and two overloaded class member functions, drawshape(and drawshape(type width,

Solve using C++
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
