Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Can package have access modifiers
|
Posted: Mar 18, 2003 6:18 PM
|
|
I don't think so. How would you use it? For instance, if you made a whole package private, it could not be used at all, right?
If you made it protected, for example, who would have access? Any package that includes that package's name (eg. members of the package com.cyclethere.tires.spokes could use members of the "protected" package com.cyclethere.tires?).
Can you offer a case where it might make sense?
|
|