Question: please help me create write a program that inherited everything that shows in this assignment, i'm new to C++ so i need help in syntax


please help me create write a program that inherited everything that shows in this assignment, i'm new to C++ so i need help in syntax and stuff,please comment if you think it's important,thank you!
In this assignment, you have to implement a hierarchy of shape classes. A well-designed object- oriented program includes a hierarchy of classes whose inter-relationship can be defined by a tree diagram. A shape hierarchy can be defined by the following shape tree Shape const double Pl 3.14159265358979; Shape2D Shape3D Triangle Rectangle Circle Area Area- Area base height/2 width height Pl (radius) Box Sphere Cylinder Area 2"(width height)+ 2*(width depth)+ 2*(height depth); Volume width height*depth; Area- 4 PI radius Area- 2Pl radius height +2*Pl radius? Volumes (4/3) PI radius Volume Pl radius2 height Figure 1: Shape Tree In the Shape tree, root node Shape can be represented by an abstract base class which generally represents an interface for all kinds of shapes. Base Shape class can have the following pure virtual function which will be overridden by its concrete derived classes virtual void printShapeDetail0 -0; The classes at the leaves of the Shape tree (e.g., Triangle, Rectangle, Circle, Box, Sphere and Cylinder) implement specific functions (i.e., functions that compute area, volume etc.) that In this assignment, you have to implement a hierarchy of shape classes. A well-designed object- oriented program includes a hierarchy of classes whose inter-relationship can be defined by a tree diagram. A shape hierarchy can be defined by the following shape tree Shape const double Pl 3.14159265358979; Shape2D Shape3D Triangle Rectangle Circle Area Area- Area base height/2 width height Pl (radius) Box Sphere Cylinder Area 2"(width height)+ 2*(width depth)+ 2*(height depth); Volume width height*depth; Area- 4 PI radius Area- 2Pl radius height +2*Pl radius? Volumes (4/3) PI radius Volume Pl radius2 height Figure 1: Shape Tree In the Shape tree, root node Shape can be represented by an abstract base class which generally represents an interface for all kinds of shapes. Base Shape class can have the following pure virtual function which will be overridden by its concrete derived classes virtual void printShapeDetail0 -0; The classes at the leaves of the Shape tree (e.g., Triangle, Rectangle, Circle, Box, Sphere and Cylinder) implement specific functions (i.e., functions that compute area, volume etc.) that
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
