We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
注意: 不能重写static静态方法。(形式上可以写,但本质上不是重写,属于下面要讲的隐藏) 重写方法可以改变其它的方法修饰符,如final,synchronized,native。 不管被重写方法中有无final修饰的参数,重写方法都可以增加、保留、去掉这个参数的 final 修饰符(参数修饰符不属于方法签名)。
重写方法可以改变其它的方法修饰符,如final,synchronized,native。final修饰的方法也能重写吗?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
重写方法可以改变其它的方法修饰符,如final,synchronized,native。final修饰的方法也能重写吗?
The text was updated successfully, but these errors were encountered: