hey my fellow Java Ranchers...what is the difference between a private inner class and a protected inner class? Thanx
Mikael Jonasson
Ranch Hand
Joined: May 16, 2001
Posts: 158
posted
0
The same as the difference between a private and a protected member variable: The acces to it. If you declare an inner class to be private, the only methods that can acces methods within that class are methods of the class encapseling that class. If you use protected, subclasses of the encapusing class may access it. /Mike