So if you have a method prototype like void myMethod(). What does that mean? What kind of access does it grant?
It means "package access". Basically any class that shares the same package as your declaring class can see/use the method. Subclasses cannot, unless they are in the same package as the superclass.
For more details, see here:
http://download.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With