Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects): "A nested class is a member of its enclosing class and, as such, has access to other members of the enclosing class, even if they are declared private. As a member of OuterClass, a nested class can be declared private, public, protected, or package private. (Recall that outer classes can only be declared public or package private.)
Terminology: Nested classes are divided into two categories: static and non-static. Nested classes that are declared static are simply called static nested classes. Non-static nested classes are called inner classes."
2007-04-25
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment