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++
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
Get step-by-step solutions from verified subject matter experts
