August 2003
Intermediate to advanced
672 pages
16h 23m
English
A static member class or a static member interface comprises the same declarations as those allowed in an ordinary top-level class or interface. A static member class must be declared as a static member of an enclosing class or interface. Nested interfaces are considered implicitly static, the keyword static can, therefore, be omitted. Since static member classes and interfaces are members of an enclosing class or interface, they can have any member accessibility.
Static member classes and interfaces can only be nested within other static member or top-level classes and interfaces.
In Example 7.2, the top-level class TopLevelClass at (1) contains ...
Read now
Unlock full access