Description of a nested or inner class should include the following:
- They are also referred to as anonymous inner classes because they can be declared within the body of an outer class and have no name.
- Such classes are used primarily for event handling.
- An inner class object is allowed to directly access all the variables and methods of the outer class object that defined it.
- An inner class defined in a method is allowed to access directly all the instance variables and methods of the outer class object that defined it and any final local variables in the method.