Next: Inner and Nested Classes:
Up: Java Notes
Previous: Inner and Nested Classes:
- class declared within a method or within an instance Initialiser
- like a local variable
- member class, can access enclosing class members
- can access only final method parameters and local variables
- local to the block in which defined
- instances of local class can be used outside the scope
- used to implement interface by local class and its instances used later
- Used in AWT: Listener event
- Example
Ananda Amatya
9/15/1999