請(qǐng)問(wèn)是什么地方出錯(cuò)了?
package?com.imooc; public?abstract?class?Telphone?{ public?abstract?void?call(); public?abstract?void?message(); } package?com.imooc; public?class?CellPhone?extends?Telphone?{ @Override public?void?call()?{ //?TODO?Auto-generated?method?stub } @Override public?void?message()?{ //?TODO?Auto-generated?method?stub } }
錯(cuò)誤顯示為
Multiple markers at this line
- implements com.imooc.Telphone.message
- The method message() of type CellPhone must?
override or implement a supertype method
2016-04-16
先保存,寫完Tellphone類之后,先保存,再去新建子類就行了
2016-04-16
只要重寫一下就好了
2016-04-16
兩個(gè)錯(cuò)誤,首先抽象類不能被繼承,而要用implement,從抽象類過(guò)來(lái)的方法必須要重寫