Embed presentation
Downloaded 17 times






Nested classes allow a class to be defined within another class in Java. There are two categories of nested classes - static nested classes which do not have access to other members of the enclosing class, and non-static (inner) classes which do have access to other members of the enclosing class, even private ones. Additionally, local inner classes can be declared within a method body, and anonymous inner classes can be declared within a method body without being named.




