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
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
rocket mass heater
subject: protected class ???
Question on protected access modifier
Question About Access Specifier
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015