有關(guān)抽象類的問題
Multiple markers at this line
- implements com.hans.She.go
- The method go() of type He must override or implement a supertype?
method
?為什么我每次寫完抽象類然后生成子類的時候,子類的方法前就會報錯,錯誤提示如上,我按照視頻里的步驟來做的
Multiple markers at this line
- implements com.hans.She.go
- The method go() of type He must override or implement a supertype?
method
?為什么我每次寫完抽象類然后生成子類的時候,子類的方法前就會報錯,錯誤提示如上,我按照視頻里的步驟來做的
2015-02-05
舉報
2015-02-05
你的go()是不是抽象方法? 抽象類里的抽象方法,子類必須實現(xiàn)重寫,錯誤就是提示你要實現(xiàn)父類的抽象方法
2015-02-05
.....發(fā)現(xiàn)那個不妨礙運行,只要沒有別的錯誤,程序可以運行,運行一遍這個情況就消失了