I'm just wondering the effects of a modifer of a class. If the class itself is friendly or package private, can its methods, constructors and fields be declared pubic? If so, can classes outside the package invode those methods and constructors or access the fields?? What's the effect of the modifier of a class?
" Veni, vidi, vici "<br />" I came, I saw, I conquered "
A class declared without an access modifier ("friendly" or "package" access) is only visible to other classes/interfaces in the same package. Making the methods public does not change this. So, no, classes outside the package cannot invoke the methods of this class.
The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai