看板
[ java ]
討論串[問題] 一個多形的問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
"Polymorphism is a programming language feature that allows values of. different data types to be handled using a uniform interface.". - Wikipedia.org
(還有246個字)
內容預覽:
我還在混亂中 Orz. C 沒有實作但繼承 B, 所以在 (E) 中其實是用了 B 的吧. (SCJP Java5 2.2). B 實作了, 但是 (B) 使用的也算是自己的method. 若要說 (B) 的code, 算是 A 的多型利用,. 那 (E) 的 code 應該也算是啊?. 總覺得 B
(還有41個字)
內容預覽:
4. Given the following Java code: [10 points]. 10. interface A { public int getValue();}. 11. class B implements A {. 12. public int getValue() { retu
(還有390個字)
首頁
上一頁
1
下一頁
尾頁