interface Radio{
  switchRadio(triggrL:boolean):void;

}
interface Bettery{
  checkBettery();
}

interface RadioAndBettery extends Radio{
  checkBettery();
}
class Car implements Radio{
  switchRadio(){

  }
}
class Cellphone implements RadioAndBettery{
  switchRadio(){

  }
  checkBettery(){

  }
}

  

posted on 2020-12-10 18:58  chenlw101  阅读(90)  评论(0编辑  收藏  举报