In general, why can't we declare a protected class (that is not including inner classes)?
Jane Griscti
Ranch Hand
Joined: Aug 30, 2000
Posts: 3141
posted
0
Hi Charlie, A 'protected' class can only be accessed by other classes within the same package or by any subclass. These conditions, for a top-level class, can all be met using the existing top-level class modifiers: 'abstract' and package (no modifier); which makes 'protected' redundant as a top-level modifier.
Hope that helps.
------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform