Can I use implements and extends at the same time?

后端 未结 2 1970
孤独总比滥情好
孤独总比滥情好 2021-01-02 05:54

Can i use the implements and the extends at the same time? Because I need to inherit something on the other class while i used implements on the same class.

         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 06:17

    You can only extend one class but you implements multiple interfaces as your need.

提交回复
热议问题