Is it a good practice to use inner classes?

Nested Class can be used whenever you want to create more than once instance of the class or whenever you want to make that type more available . Nested Class increases the encapsulations as well as it will lead to more readable and maintainable code.

Sizin İçin Seçtik  What is base class in Java with example?

Leave a Reply

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