+ 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??

26th Jul 2017, 5:53 AM
Devbrath
Devbrath - avatar
1 Resposta
+ 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
26th Jul 2017, 6:18 AM
Hatsy Rei
Hatsy Rei - avatar