What is nested class what is its use explain with example?

The nested class is inside its enclosing class so that it has access to its enclosing class’s members . Like other members, a nested class can be declared static (or not). A static nested class is called just that: a static nested class. A nonstatic nested class is called an inner class.

Sizin İçin Seçtik  What is the advantage of static inner class?

Leave a Reply

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