Can an inner class may be defined as static?

Note: We can not have a static method in a nested inner class because an inner class is implicitly associated with an object of its outer class so it cannot define any static method for itself.24 Şub 2022

Sizin İçin Seçtik  What is the purpose of an inner class?

Leave a Reply

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