Τρίτη, 10 Ιουνίου 2008

Controlling Access to Members of a Class

The following table shows the access to members permitted by each modifier.

Access Levels







































ModifierClassPackageSubclassWorld
publicYYYY
protectedYYYN
no modifierYYNN
privateYNNN


απο το http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html

Δεν υπάρχουν σχόλια: