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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!