DEV Community

Discussion on: Why you should avoid package-private scope in Java

Collapse
 
baenencalin profile image
Calin Baenen

Java needs an equivalent to internal from C#.
Another reason "package-private" is bad is because you can't use those pckg-prvt things from a "super-package". But why not? Wouldn't it make sense to treat a super as part of that family?