多态随笔

多态即为后期绑定或运行时绑定.

只有non-static, non-final, non-private method有多态性.

Field, Constructor以及 static, final, private method 均没有多态性.

Constructor隐式static的,

private method隐式final的.

子类Overwrite 父类的 private method不会有编译错误, 但是由于其不具备多态性, 会造成程序运行混乱.

原文地址:https://www.cnblogs.com/davidwang/p/2871025.html