-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
方法重写的条件需要具备以下条件和要求:
1、参数列表必须完全与被重写方法的相同; 2、返回类型必须完全与被重写方法的返回类型相同
2,“完全相同”--->相同,或为其子类。
The text was updated successfully, but these errors were encountered: