看板 [ java ]
討論串有關繼承的問題
共 5 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者ynchang (亂入的可憐蟲)時間19年前 (2006/05/18 07:48), 編輯資訊
0
0
0
內容預覽:
-------------------------略------------------------------- ^^^^^^^^他是Parent型態的 Parent並沒有提供sum()這種method. 只有sum(int)這種method. 所以會發生"編譯"錯誤..... --. 發信站

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者ogamenewbie (荷蘭爛銀行)時間19年前 (2006/05/18 03:31), 編輯資訊
0
0
1
內容預覽:
避免 pcman 使用者誤觸陣亡. 原文砍除.. 引述《redbug.bbs@bbs.ice.cycu.edu.tw (雙面虎)》之銘言:. 程式碼如下 麻煩各位高手們幫忙. class Parent {. int i = 30;. int sum(int j) {. return i+j;.
(還有915個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者king08 (糊塗蛋)時間19年前 (2006/05/06 19:29), 編輯資訊
0
0
0
內容預覽:
引述《CubicU.bbs@micro.bio.ncue.edu.tw (ture)》之銘言:這是修飾字的問題:. 像public class Super{. [public][proteted][default][private] Type MethodName (Type){}. }. 如果

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者CubicU.時間19年前 (2006/05/06 18:32), 編輯資訊
0
0
0
內容預覽:
引述《deepdish.bbs@binary.csie.ncu.edu.tw (資管四霸征服天下)》之銘言:. > 引述《redbug.bbs@bbs.ice.cycu.edu.tw (雙面虎)》之銘言:. > 程式碼如下 請各位高手幫幫忙. > class Parent {. > int
(還有807個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者deepdish.時間19年前 (2006/05/06 13:32), 編輯資訊
0
0
0
內容預覽:
引述《redbug.bbs@bbs.ice.cycu.edu.tw (雙面虎)》之銘言:. 程式碼如下 請各位高手幫幫忙. class Parent {. int i = 30;. int sum(int j) {. return i+j;. }. int sum(){ return 333;
(還有543個字)
首頁
上一頁
1
下一頁
尾頁