Can a local class declared inside a static method have access to the instance members of the outer class?
No. There is no this reference available in the static method .The static method class can not have access to any members of the outer class other than static members.
No comments:
Post a Comment