查看完整版本: 這題原文是在問什麼
頁: [1]

willy80720 發表於 2009-11-22 03:24 PM

這題原文是在問什麼

本帖最後由 willy80720 於 2009-11-23 03:58 PM 編輯

這題原文是在問什麼  我看不太懂

Some programmers prefer not to use protected access, because they believe it breaks the encapsulation of the superclass.
Discuss the relative merits of using protect access vs. using private access in superclasses

中譯
一般設計師比較不喜歡使用protec存取方式  
因為這樣會破壞父類別的封裝特性
討論在父類別中  使用protect與prevate存取等級的相關優點

還是有點不懂  存取等級又是什麼意思??...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>

gnu 發表於 2009-11-23 02:17 AM

你第一步要做的是查字典

magic99 發表於 2009-11-23 09:01 PM

存取等級........
java有四種存取修飾子
package,private,public,protected
protected就是其中一種

magic99 發表於 2009-11-23 09:02 PM

protected是透過繼承才可以實作的method
頁: [1]