Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java的继承与实现一章中代码举例的建议 #175

Open
Madrid-Ista opened this issue May 3, 2022 · 0 comments
Open

Java的继承与实现一章中代码举例的建议 #175

Madrid-Ista opened this issue May 3, 2022 · 0 comments

Comments

@Madrid-Ista
Copy link

为了解释继承与实现的区别,举例如下:
“class Car extends Benz implements GasolineCar, ElectroCar 定义一辆汽车,他实现了电动车和汽油车两个标准,但是他属于奔驰这个品牌。”
我觉得改为“class Benz extends Car implements GasolineCar, ElectroCar 定义一辆奔驰牌汽车,他实现了电动车和汽油车两个标准,但是他属于汽车这个抽象类。”更为贴切

@Madrid-Ista Madrid-Ista changed the title Java的继承与实现一章中举例的疑问 Java的继承与实现一章中代码举例的建议 May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant