Respuesta :

A nested class is a member of its enclosing class. Non-static nested classes (inner classes) have access to other members of the enclosing class, even if they are declared private. Static nested classes do not have access to other members of the enclosing class.

Nested and inner classes are frequently used in Java programming. A nested class is one that is defined within another class. A non-static type, on the other hand, is a specific specimen of a nested class.

There are four types of inner classes:

  • Nested Inner Class.
  • Static Inner Class.
  • Method Local Inner Class.
  • Anonymous Inner Class

To know more about nested class here

https://brainly.com/question/17030813

#SPJ4