A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
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
subject: protected class ???
private and protected class - why not?
WA #1.....word association
Question on protected access modifier
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014