Question: in C++ Task 02: Write a program that defines a shape class with a constructor that gives value to width and height. The define two

in C++in C++ Task 02: Write a program that defines a shape class

Task 02: Write a program that defines a shape class with a constructor that gives value to width and height. The define two sub-classes triangle and rectangle, that calculate the area of the shape area O. In the main, define two variables a triangle and a rectangle and then call the area O function in these two variables

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!