At the time of construction of the base class, the derived class is not yet created thus the virtual method table is not overwritten with methods redefined in the derived class thus calling virtual methods from the constructor of the base class cannot access any code from the derived class. Trying to do that results in the code from the base class being invoked and is considered a programming error as far as the standards go.





Reply With Quote

Bookmarks