Answer the questions (i) to (iv) based on the following:
class Shape { int length; protected: int width,height; public: Shape(); void getDimension(int,int,int); void dispDimension(); }; class SideShape : protected Shape { int SideLength,SideWidth; protected: void getSide(int,int); public: SideShape(); void dispSide(); }; class SubShape : public SideShape { int subLength; void display(); public: SubShape(); void enter(); };
(i) Name the base class and derived class of SideShape
(ii) Write the name(s) of all the data members that can be accessed from function dispSide().
(iii) Write the name(s) of private member functions of class SubShape.
(iv) Write the names of all the member functions accessible from object of class SubShape.