You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
为了解释继承与实现的区别,举例如下:
“class Car extends Benz implements GasolineCar, ElectroCar 定义一辆汽车,他实现了电动车和汽油车两个标准,但是他属于奔驰这个品牌。”
我觉得改为“class Benz extends Car implements GasolineCar, ElectroCar 定义一辆奔驰牌汽车,他实现了电动车和汽油车两个标准,但是他属于汽车这个抽象类。”更为贴切
The text was updated successfully, but these errors were encountered:
为了解释继承与实现的区别,举例如下:
“class Car extends Benz implements GasolineCar, ElectroCar 定义一辆汽车,他实现了电动车和汽油车两个标准,但是他属于奔驰这个品牌。”
我觉得改为“class Benz extends Car implements GasolineCar, ElectroCar 定义一辆奔驰牌汽车,他实现了电动车和汽油车两个标准,但是他属于汽车这个抽象类。”更为贴切
The text was updated successfully, but these errors were encountered: