So if you have a method prototype like void myMethod(). What does that mean? What kind of access does it grant?
So if you have a method prototype like void myMethod() . What does that
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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