please read the statement below. "Code in a non-static member class can directly refer to any member (including nested) of any enclosing class or interface, including private members. No explicit reference is required."
could anyone give me the reason to support this statement.
As a member of its enclosing class, a nonstatic nested class has a special privilege: It has unlimited access to its enclosing class's members, even if they are declared private. However, this special privilege isn't really special at all. It is fully consistent with the meaning of private and the other access specifiers. The access specifiers restrict access to members for classes outside of the enclosing class. The nested class is inside of its enclosing class so that it has access to its enclosing class's members. For details please refer: http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html
subject: another question regarding non-static member class