看板 [ java ]
討論串[問題] Object物件使用
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者koalahong時間17年前 (2008/05/18 22:10), 編輯資訊
0
0
0
內容預覽:
Reflection 的寫法. 最近剛好學到,現學現賣一下XD. class A {. public test();. }. Object test=new A();. test.getClass().getMethod("test", null).invoke(test, null);. 至於各參

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者b60413 (None)時間17年前 (2008/05/16 22:19), 編輯資訊
0
0
0
內容預覽:
請問我創造一個Object變數 但是在new的時候是使用A class. 那這個變數有辦法使用A class的method嗎?. ex:. class A {. public test();. }. Object test=new A();. //test.test();. --. 發信站:
首頁
上一頁
1
下一頁
尾頁