3 ms·
> This means that at the time you select which method to call, you must also have at your disposal the instance on which you want to call it! That is also its
by edflsafoiewq 6y ago
> This means that at the time you select which method to call, you must also have at your disposal the instance on which you want to call it!
That is also its advantage, since the method to call can depend on the instance. Not just for dynamic dispatch either. A statically dispatched call will look up B on classof(A).