class MyClass{ //nested class (made private) class Nested{ public: Nested(){max=0;nelem=0;} Nested(int max_value,int n){max=max_value;nelem=n;} int GetMaxValue(){return max;} int GetElem(){return nelem;} private: int max; int nelem; }; public: MyClass(){for(int i=0;i