Introduction to OOP | Chapter 27: Implementation : | next | previous | audio | real | text |
If the (dynamic) class of the receiver is know, a virtual call can simply become an ordinary procedure call
Good optimizing compilers spend a considerable amount of time tracing possible execution flows to gather this information.
Sometimes methods can even be expanded in-line at the point of call.