Why would you use an inner class?

Use a non-static nested class (or inner class) if you require access to an enclosing instance’s non-public fields and methods . Use a static nested class if you don’t require this access.

Sizin İçin Seçtik  Which gets the employee details and returns the employee object?

Leave a Reply

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