Programming - Inner Classes - Discussion

You Are Here :: Home > JAVA > Inner Classes - Discussion

 



Q.

Is inner class instance has access to all members of the outer class,even those marked as private?                         


A. Yes B. No
C. cant say D. Maybe

Answer: Option A
Explaination:

 


Yes inner class instance has access to all members of the outer class,even those marked as private.




Discussion

Your Comments Goes here...
NameDiscussion