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

第二章节重载与重写中,重写的要求 #177

Open
chen-xi-D opened this issue May 29, 2022 · 0 comments
Open

第二章节重载与重写中,重写的要求 #177

chen-xi-D opened this issue May 29, 2022 · 0 comments

Comments

@chen-xi-D
Copy link

方法重写的条件需要具备以下条件和要求:
1、参数列表必须完全与被重写方法的相同; 2、返回类型必须完全与被重写方法的返回类型相同
2,“完全相同”--->相同,或为其子类。

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