Hi everyone,
I'm trying to do my assignment, and in there, I'm supposed to use a nested class with which seems I'm facing a lot of difficulties. To make things easy to understand and debug, I made a small piece of code as follows:
class outter {
public:
int getID();
void setID(int ID);
private:
int ID;
class inner {
public:
string name;
};
};
The question is, how can I access from outside to the member variable "name".
Thanks a lot in advance.