Question: 1 2 pts ) Use the class definitions Shape, TwoDimensional, and Circle discussed in Module 9 / Lesson 2 to design new derivate classes named
pts Use the class definitions Shape, TwoDimensional, and Circle discussed in Module Lesson to design new derivate classes named Square, RightTriangle, Parallelogram, and Trapezoid geometric figures where the base class is TwoDimmensional. Use the following formulas to solve the activity:
Dugopolski Geometry Figures
ptsDesign a class named ThreeDimensional with two attributes:
Declare one attribute named volume of floatingpoint data type.
Declare one attribute named surfaceArea floatingpoint data
pts Design new derivate classes for each geometric figure named RightCircularCone, Right CircularCylinder, and Sphere, where the base class is ThreeDimensional.
Define Constructors, Destructor, Copy Constructor, mutators, and accessor functions in your code.
Overload stream operators in your classes.
pts The solution must contain the following:
Source code.
Output program. Show each case menu.
Table description.
Access and Inherited descriptive table.
UML diagram.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
