File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
I agree. Here's the link:
subject: protected class ???
Question on protected access modifier
WA #1.....word association
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