Java语言规范是否规定了子类中方法重写的规则?
Java语言规范是否规定了子类中方法重写的规则?
JLS里好像没找到这个。
Does Java Language Specification lay down the rules of method overriding in sub classes?
Can't seem to find this in the JLS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,绝对如此。它在 第 8.4.8 节中进行了描述。
如果您正在尝试查找某个特定方面并遇到问题,请在您的问题中更加具体 - “方法覆盖的规则”非常广泛。
Yes, it absolutely does. It's described in section 8.4.8.
If there's one specific aspect you're trying to find and having problems with, please be more specific in your question - "the rules of method overriding" are pretty broad.