We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Nested Classes, Part 1
|
| Subject: |
|
Accessing Protected Members |
| Date: |
|
2004-05-21 15:42:38 |
| From: |
|
kristianmonsen
|
Response to: Accessing Protected Members
|
|
I understand it so that if the enclosing class can access the variable, than the inner class can as well. Since the enclosing class is a subclass of the class where the variable is declared, it will always be able to access a protected variable. |