摘要:
idea 错误提示 @Override 重写方法的目的是为了多态, 重写是实现多态的前提, 即重写是发生于继承且针对非static方法 语法上子类允许出现和父类只有方法体不一样的static方法, 但语法上static支持重写, 但是运行上达不到多态 a的编译类型为 父类A, 运行类型为 子类B, 阅读全文
posted @ 2021-07-07 10:52
ascertain
阅读(93)
评论(0)
推荐(0)
摘要:
The Java Language Specification recommends listing modifiers in the following order: 1. Annotations 2. public 3. protected 4. private 5. abstract 6. s 阅读全文
posted @ 2021-07-07 10:24
ascertain
阅读(128)
评论(0)
推荐(0)

浙公网安备 33010602011771号