2011-11-06 15:41:05moooner
[轉錄] Java觀念澄清-protected&default
public | protected | package | private | |
same class | Y | Y | Y | Y |
non-subclass in the same package | Y | Y | Y | N |
non-subclass in the same package | Y | N | N | N |
non-subclass in the same package | Y | Y | Y | N |
subclass outside the packeage | Y | Y | N | N |
(表格轉錄自 Sun Certified Programmer & Developer For Java 2Study Guide)
上一篇:[轉錄] Java學習內容!