+ 1
Access Specifiers
I know what public and private access specifiers does. Protected access is limited to the package. then what kind of access does default gives??
1 Antwort
+ 10
"The default scope is package-private. All classes in the same package can access the method/field/class. Package-private is stricter than protected and public scopes, but more permissive than private scope.
More information:
http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html
http://mindprod.com/jgloss/scope.html
"
https://stackoverflow.com/questions/714791/what-is-the-default-scope-of-a-method-in-java