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 =3.14159265359;1011class TwoDimensional : public Shape ( public:const int din(2};13class ThreeDimensional : public Shape {public:1516171819202122const int dim(3};class Circle: public TwoDimensional ( public:double calculateAre(double radius) return mypipow (radius, dim);Which of the following statements represents the class hierarchy of the provided code?A)ShapeThreeDimeTwoDimennsionalsionalCircleB)CircleShapeThreeDimensionalTwoDimensionalC)ShapeThreeDimensionalTwoDimensionalCircleD)CircleThreeDimenTwoDimenssionaltonalShape

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!