I'd like to be able to have two "protected" classes in my package. That is, I do not want files outside of my package to see them as visible - they will be for internal use within the package only.
How can I do this?
I'd like to be able to have two "protected" classes in my package. That is, I do not want files outside of my package to see them as visible - they will be for internal use within the package only.
How can I do this?
Just leave out all keywords. The default visibility is package-private, viewable within the package only.
e.g.: