Skip to content

Commit 4c642c3

Browse files
authoredApr 14, 2024··
Merge pull request #2364 from ddouddle/main
[docs update]部分描述完善
2 parents 4327b60 + 645d387 commit 4c642c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/java/basis/java-basic-questions-02.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public class Student {
196196
- 对象类型和引用类型之间具有继承(类)/实现(接口)的关系;
197197
- 引用类型变量发出的方法调用的到底是哪个类中的方法,必须在程序运行期间才能确定;
198198
- 多态不能调用“只在子类存在但在父类不存在”的方法;
199-
- 如果子类重写了父类的方法,真正执行的是子类覆盖的方法,如果子类没有覆盖父类的方法,执行的是父类的方法。
199+
- 如果子类重写了父类的方法,真正执行的是子类重写的方法,如果子类没有重写父类的方法,执行的是父类的方法。
200200

201201
### 接口和抽象类有什么共同点和区别?
202202

0 commit comments

Comments
 (0)
Please sign in to comment.