Next: Inner Class
Up: Java Notes
Previous: Interface 3: Alarm Clock
- A class which is a member of a class: unlimited access to class members
- Static nested class: associated with enclosing class not its instance; instance variables and methods of the enclosing class may be used only via an object reference, not directly
- Nested within package level classes
- Non-static nested class: also called inner class
-
abstract
, public
, final
, private
nested classes
- Cannot be
native
, transient
, volatile
, or synchronized
Ananda Amatya
9/15/1999