@Override提示錯誤
跟老師寫的一樣的代碼,為什么在child類中沒有@Override,而且一添加@Override就提示錯誤?
Multiple markers at this line
- The method age() of type child must override a superclass method
- implements lession.person.age
跟老師寫的一樣的代碼,為什么在child類中沒有@Override,而且一添加@Override就提示錯誤?
Multiple markers at this line
- The method age() of type child must override a superclass method
- implements lession.person.age
2016-05-03
舉報
2016-05-03
百度到答案了,windows-->perference-->java-->compiler-->改為6.0
右鍵項目--》build path--》configure build path--》java—》compiler--》更改為6.0
解決了