Showing posts with label Nested Classes in Java. Show all posts
Showing posts with label Nested Classes in Java. Show all posts

Nested Class Concept

  • 0
      Java language allows nesting of classes. When one class in defined in another class, then, enclosed class is called nested class. A nested class can access the methods and variables of the enclosing class, even private members, like they all are members of its own.