Modifier | Class | Package | Subclass | World |
---|---|---|---|---|
public | Y | Y | Y | Y |
protected | Y | Y | Y | N |
[no modifier] | Y | Y | N | N |
private | Y | N | N | N |
Source: http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html
Terms for easy searching later:
package-private, package-protected, access control, public, protected, private
No comments:
Post a Comment