
please wait
|
|
new
). To be more specific let's say we have 2 objects:base class B
with a virtual function vfunc()
and derived class D with a different virtual function [code]vfunc()
.base* B
is used then ALWAYS the function of the base class will be called regardless of the dynamic type of B
(B
could point to a base
object or a derived
object)