1. Inheritance extends between interfaces
2. Use implements in combination with interfaces
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(){}
}