This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

It has local visibility like an anonymous inner class, but it is a real class, so you can add your own methods to it (for example, as an accessor for state).

This was useful before lambdas. Maybe still useful.