看板 [ java ]
討論串[問題] 一個多形的問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者H45 (!H45)時間17年前 (2008/05/07 07:59), 編輯資訊
0
0
0
內容預覽:
"Polymorphism is a programming language feature that allows values of. different data types to be handled using a uniform interface.". - Wikipedia.org
(還有246個字)

推噓2(2推 0噓 3→)留言5則,0人參與, 最新作者AI3767 (AI3767)時間17年前 (2008/05/06 22:26), 編輯資訊
0
0
0
內容預覽:
我還在混亂中 Orz. C 沒有實作但繼承 B, 所以在 (E) 中其實是用了 B 的吧. (SCJP Java5 2.2). B 實作了, 但是 (B) 使用的也算是自己的method. 若要說 (B) 的code, 算是 A 的多型利用,. 那 (E) 的 code 應該也算是啊?. 總覺得 B
(還有41個字)

推噓4(4推 0噓 0→)留言4則,0人參與, 最新作者upo (來呀)時間17年前 (2008/05/04 22:19), 編輯資訊
0
0
0
內容預覽:
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
下一頁
尾頁