A local class has approximately the same relationship to a member class that a local variable in a method has to an instance variable of the class containing the method.