Calling test(bc)
In Base class, int x = 1
In Base class, int x = 2
Calling test(sc)
In Base class, int x = 1
In Base class, int x = 2
运行成功(总计时间: 312毫秒)
注意,都是调用的父类中的函数.
in parent
in child
Java却可以区分...
Calling test(bc)
In Base class, int x = 1
In Base class, int x = 2
Calling test(sc)
In Base class, int x = 1
In Base class, int x = 2
运行成功(总计时间: 312毫秒)
注意,都是调用的父类中的函数.
in parent
in child
Java却可以区分...