Henry Wong wrote:
Another aspect of the access modifiers -- private means private to everything in the enclosing top-level class. This means that a nested class can access private variables of the enclosing class, of its own nested classes, and even with other nested classes that are not even in the same nesting "hierarchy".
You can argue, using C++ terminology, that all nested classes in the same top-level class are "friend" classes to each other.
This is amazing! This is one of the most helpful tidbits of information I have seen in quite some time. This could come in really handy some day.
Thanks