interface Radio{
switchRadio():void
}
interface Battery{
checkBatteryStatus()
}
interface RadioWithBattery extends Radio{
}
class Car implements Radio{
switchRadio(){
}
}
class Dog implements RadioWithBattery{
switchRadio(){
}
checkBatteryStatus(){
}
}
标签:implements,13,接口,RadioWithBattery,Radio,react18,switchRadio,interface
From: https://www.cnblogs.com/yao-655442/p/16629134.html