When you create an inner class, an object of that inner class has a
link to the enclosing object that made it, and so it can access the members of that enclosing object—without any special qualifications. In addition, inner classes have access rights to all the elements in the enclosing class.
No comments:
Post a Comment