在使用接口時提示:No interface expected here

1.錯誤描述

在使用接口時提示:No interface expected here

2.錯誤原因

  No interface expected here:此處不需要接口;

  因爲Device.Delegate是接口,使用extends是繼承父類;

3.解決方案

使用 implements 代替 extends即可;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章