看板
[ java ]
討論串[問題] 為什麼override時修飾子不能小於原來的?
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
舉個例好了. class Base. {. public void foo(). {. System.out.println("Base");. }. }. class Derive extends Base. {. private void foo() //你的問題. {. System.out.
(還有1063個字)
首頁
上一頁
1
下一頁
尾頁