目录

​1.多态的介绍​

​2.多态在内存的展现​

​3.多态的好处弊端​

​4.向下转型为了调用子类方法​

​5.转型风险​

​6.多态的好处​

​7.接口和类相对​


1.多态的介绍

Java基础知识日积月累(Tip of the Day13)_子类

2.多态在内存的展现

Java基础知识日积月累(Tip of the Day13)_多态_02

3.多态的好处弊端

Java基础知识日积月累(Tip of the Day13)_向下转型_03

Java基础知识日积月累(Tip of the Day13)_向下转型_04

4.向下转型为了调用子类方法

Java基础知识日积月累(Tip of the Day13)_多态_05

5.转型风险

Java基础知识日积月累(Tip of the Day13)_多态_06

Java基础知识日积月累(Tip of the Day13)_子类_07

6.多态的好处

Java基础知识日积月累(Tip of the Day13)_多态_08

7.接口和类相对

Java基础知识日积月累(Tip of the Day13)_向下转型_09