Question: A code is given: class Shape public:const double nypi = 3 . 1 4 1 5 9 2 6 5 3 5 9 ; 1
A code is given: class Shape public:const double nypi ;class TwoDimensional : public Shape public:const int din;class ThreeDimensional : public Shape public:const int dim;class Circle: public TwoDimensional public:double calculateAredouble radius return mypipow radius dim;Which of the following statements represents the class hierarchy of the provided code?AShapeThreeDimeTwoDimennsionalsionalCircleBCircleShapeThreeDimensionalTwoDimensionalCShapeThreeDimensionalTwoDimensionalCircleDCircleThreeDimenTwoDimenssionaltonalShape
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
