What is a local class?

Local classes are classes that are defined in a block, which is a group of zero or more statements between balanced braces . You typically find local classes defined in the body of a method. This section covers the following topics: Declaring Local Classes. Accessing Members of an Enclosing Class.

Read more