What is a nested class in Java?

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.

Sizin İçin Seçtik  Milyonerden kazanılan para helal mi?

Leave a Reply

Your email address will not be published. Required fields are marked *