Question: Sir please answer this question by own. I shall be very thankful to you Question of C++(Object Oriented Book). The world of shapes is much
Sir please answer this question by own. I shall be very thankful to you

Question of C++(Object Oriented Book). The world of shapes is much richer than the shapes included in the inheritance hierarchy shown below: Shape TwoDimensionalShape ThreeDimensionalShape Circle Square Triangle Sphere Cube Tetrahedron Write down all the shapes you can think of both two-dimensional and three-dimensional and form them into a more complete Shape hierarchy with as many levels as possible. Your hierarchy should have base class Shape from which class TwoDimensionalShape and class ThreeDimensionalShape are derived. Provide an area function and a volume function in the base class Shape. Override these functions in the derived classes if required. Make an object of each of the child class (which is present at the lowest level of inheritance) and call the area function for 20 shapes and volume function for 30 shapes using these objects. Do not use strings. User char pointers instead. Provide all type of constructors (including copy constructors), destructor, display() and setter/getter for each class, whether it is mentioned or not. Make a menu driven code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
