Below is my code. What i want to do is to assign a value to variable data. I'm not allowed to write any method in the public area of XYZ class. But a pointer to an object of XYZ class is allowed but in the private area of XYZ class only but public portion of ABC class is allowed. I can write the methods into this.
Any idea to do this...???
RegardsCode:class ABC { private: class XYZ { private: int data; }; public: ABC(); };
Lucky