複選題
第27題 Given: 10. class One{ 11. void foo(){} 12. } SCJP 6.0 認證教戰手冊 黃彬華著 碁峰出版 14 13. class Two extends One{ 14. //insert method here 15. } Which three methods, inserted individually at line 14, will correctly complete class Two? (Choose three.)
(A) int foo(){/* more code here */}
(B) void foo(){/* more code here */}
(C) public void foo(){/* more code here */}
(D) private void foo(){/* more code here */}
(E) protected void foo(){/* more code here */}

答案:登入後查看
統計: A(32), B(98), C(121), D(29), E(106) #1157029

詳解 (共 2 筆)

#3252997
1.繼承體系下,子類別存取權限不能低於父...
(共 145 字,隱藏中)
前往觀看
10
0
#2974074
此概念為子類別改寫父類別:改寫規則:方法...
(共 167 字,隱藏中)
前往觀看
0
0