A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
protected class ???
Joined: Nov 13, 2004
Nov 24, 2004 10:43:00
Why we cannot have a class as protected???
Have A Nice Day !!!
Joined: Mar 13, 2004
Nov 24, 2004 10:58:00
Nested classes can be protected.
If you look at the rules for accessing a protected entity from outside the same package, you'll see that they just wouldn't apply to a top level class. So the access choices for a top level class are public and default (package).
SCJP 1.4, SCWCD in process
Don't get me started about those stupid
subject: protected class ???
WA #1.....word association
Question on protected access modifier
private and protected class - why not?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014