Just like member classes, methods of a local class have direct access to all the members of the enclosing classes, including private members.