Is polymorphism a compile-time behavior or a runtime behavior?

Polymorphism is a runtime behavior:
because the program can only decide which object's method to call when the program is running

Guess you like

Origin blog.csdn.net/Mr_zhang66/article/details/112725328