Question: Write an inherited class with name cubeplus using given cube class as base class with following conditions, (i) It will be possible to send parameters
Write an inherited class with name cubeplus using given cube class as base class with following conditions,
(i) It will be possible to send parameters for initializing length, height and width of cube while defining an object using inherited class. Briefly, it must be possible to send parameters to constructor.
(ii) Define a member functions with name getsuar. This functions will just return surface area of cube.
(iii) Define another member function with name showvol which prints the volume of the cube on screen.
(iv) Override a unary ++ operator (for both prefix and postfix). This operator will increase height, widht and length of rectangle by 10%. 
Time le Following definitions are given, #include #include struct dims {float wid, len, hei; ); class cube { private: float w,1,h; protected: dims getdim () {dims d; d.wid=w; d.len=1; d.hei=h; return(d); } public: cube (float lg=5, float hg=5, float wd=5){w=wd;l=1g; h=hg;) void setdim (float lg, float hg, float wd) (1=1g; h=hg; w=wd; ) float getvol (){return(1*h*w); } CUBOID height- width length Write an inherited class with name 'cubeplus' using given "cube" class as base class with following conditions, (b) It will be possible to send parameters for initializing length, height and width of cube while defining an object using inherited class. Briefly, it must be possible to send parameters to constructor. 0) Define a member functions with name 'getmisu. This functions will just return surface area of a side having the minimum surface. (ili) Define another member function with name volval which returns the volume of the cube. (iv) Override a unary -- operator (for both prefix and postfix). This operator will decrease height widht and length of rectangle by half. Time le Following definitions are given, #include #include struct dims {float wid, len, hei; ); class cube { private: float w,1,h; protected: dims getdim () {dims d; d.wid=w; d.len=1; d.hei=h; return(d); } public: cube (float lg=5, float hg=5, float wd=5){w=wd;l=1g; h=hg;) void setdim (float lg, float hg, float wd) (1=1g; h=hg; w=wd; ) float getvol (){return(1*h*w); } CUBOID height- width length Write an inherited class with name 'cubeplus' using given "cube" class as base class with following conditions, (b) It will be possible to send parameters for initializing length, height and width of cube while defining an object using inherited class. Briefly, it must be possible to send parameters to constructor. 0) Define a member functions with name 'getmisu. This functions will just return surface area of a side having the minimum surface. (ili) Define another member function with name volval which returns the volume of the cube. (iv) Override a unary -- operator (for both prefix and postfix). This operator will decrease height widht and length of rectangle by half