ts-类与接口


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(){

  }
}