1、接口间继承extends
2、类结合接口使用implements
interface Radio{
switchRadio(trigger:boolean):void
}
interface Battery{
checkBatteryStatus():void
}
//接口继承extends
interface RadioWithBattery extends Radio{
checkBatteryStatus():void
}
//接口接合类implements
class Cellphone implements Radio{
switchRadio(trigger:boolean){}
}
//接口接合类implements
class Cellphone2 implements RadioWithBattery{
switchRadio(trigger:boolean){}
checkBatteryStatus(){}
}