User Profile
Collapse
-
stelarobinson replied to what happens if i call a base class virtual function in a derived class constructor?in CWhen constructing the derived class, the base class is constructed first. If you call a virtual method from the base class constructor, the overridden method is called. But notice that when that overridden method is called, the derived class is not initialized because its constructor code was not executed yet.
No activity results to display
Show More
Leave a comment: