Skip to content

Commit a25ee0a

Browse files
committed
Update Java基础知识.md
1 parent b74f3c8 commit a25ee0a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/java/basis/Java基础知识.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,6 @@ public class Student {
965965
**多态的特点:**
966966
967967
- 对象类型和引用类型之间具有继承(类)/实现(接口)的关系;
968-
- 对象类型不可变,引用类型可变;
969-
- 方法具有多态性,属性不具有多态性;
970968
- 引用类型变量发出的方法调用的到底是哪个类中的方法,必须在程序运行期间才能确定;
971969
- 多态不能调用“只在子类存在但在父类不存在”的方法;
972970
- 如果子类重写了父类的方法,真正执行的是子类覆盖的方法,如果子类没有覆盖父类的方法,执行的是父类的方法。

0 commit comments

Comments
 (0)