Originally posted by Nisheeth Kaushal:
Hi all,
Can anyone provide me with the list of modifier that variables of a class and is accessible to static inner classes and inner classes.
Is it true that static inner class can only access fianl variables of the outer class.
Nisheeth.
1. non static inner classes can access all(private, protected, public) members of outer class.
2. static classes can access all static members of outer classes.(can not access non static members).
3. inner classes in side the member method can access all members of outer class and only final arguments of the method.
CMIW (correct me if wrong)
------------------
Regards
Ravish