class upper { private: int i; class nested;// forward declaration friend nested; class nested { public: uppder obj; void SomeFunction() { cout<< obj.i; } }; };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)