Question: Task 2: MULTILevel INHERITANCE Create a base class, called Shape. create the derived class Rectangle which is used as a base class to create the

Task 2: MULTILevel INHERITANCE Create a base class, called Shape. create the derived class Rectangle which is used as a base class to create the derived class called ColorRectangle. Due to inheritance the Color Rectangle inherit all the characteristics of Rectangle and Shape and add an extra field called rcolor, which contains the color of the rectangle. Shape Rectangle ColorRectangle Base Class Derived Class 1 Derived Class 2 Write a program in c++ to implement the above scenario
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
