Nesting a class within another class does not give member functions of the nested class special access privileges. Similarly, member functions of the enclosing class have no special access to members of the nested class.
For more information about access privileges, see Chapter 10, “Member-Access Control.”