討論串[問題] 宣告method時帶入的參數型態不定
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者ashram.時間16年前 (2009/06/25 11:01), 編輯資訊
0
0
0
內容預覽:
我要宣告一個method,可是依據傳入的object不同. 要new不同的物件. 例如. void methodfunc(). {. class1 abc = new class1();. abc.attribute = .... class1已經是在別的地方定義好了. 另外還有class2, cl

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者ashram (アシュラム)時間16年前 (2009/06/24 10:38), 編輯資訊
0
0
0
內容預覽:
我要宣告一個method,可是依據傳入的object不同. 要new不同的物件. 例如. void methodfunc(). {. class1 abc = new class1();. abc.attribute = .... class1已經是在別的地方定義好了. 另外還有class2, cl
首頁
上一頁
1
下一頁
尾頁