Programming - Inner Classes - Discussion

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

 



Q.

An _____________________ instance shares with an instance of the outer class                         


A. inner class B. outer class
C. static class D. final variable

Answer: Option A
Explaination:

 


This Special relationship gives code in the inner class access to members of the enclosing outer class,as if the inner class were part of the outer class.




Discussion

Your Comments Goes here...
NameDiscussion