多态是 编译时行为 还是 运行时行为?

多态是运行时行为:
因为程序只能在程序运行的时候才能决定调用哪个对象的方法

猜你喜欢

转载自blog.csdn.net/Mr_zhang66/article/details/112725328