Can nested class be protected?

Nested classes that are declared static are called static nested classes. A nested class is a member of its enclosing class. … Static nested classes do not have access to other members of the enclosing class. As a member of the OuterClass , a nested class can be declared private , public , protected , or package private .

Sizin İçin Seçtik  What is difference between LTE and Wi-Fi?

Leave a Reply

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