1.

Can A Local Class Declared Inside A Static Method Have Access To The Instance Members Of The Outer Class?

Answer»

No. There is no REFERENCE available in the static METHOD about the instance MEMBERS of the outer class. The static method class cannot have ACCESS to any members of the outer class other than static members.

No. There is no reference available in the static method about the instance members of the outer class. The static method class cannot have access to any members of the outer class other than static members.



Discussion

No Comment Found