8.5. Member Type Declarations
A member class is a class whose declaration is directly enclosed in another class or interface declaration.
A member interface is an interface whose declaration is directly enclosed in another class or interface declaration.
The accessibility of a member type in a class declaration is specified in §6.6.
It is a compile-time error if a member type declaration has more than one of the access modifiers public
, protected
, and private
.
Member type declarations may have annotation modifiers (§9.7) like any other type or member declaration.
The scope and shadowing of a member type is specified in §6.3 and §6.4.
If a class declares a member type with a certain name, then the declaration of that type is said to hide any and ...
Get The Java® Language Specification, Java SE 7 Edition, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.