Next: Inner and Nested Classes:
Up: Java Notes
Previous: Inner and Nested Classes:
- No class name
- Local class
- Object creation combined with class declaration
- Only one instance
- Either an interface implementation or a subclass
- No Constructors
- Instance initialisers: used to initialise anonymous class instance
- No static fields, methods or classes
- No anonymous interface
- No nested interface in an anonymous class
- No access modifiers
- Example
Ananda Amatya
9/15/1999