Calling a virtual function from the constructor
Is there something wrong with this approach? Answer from Bjarne Stroustrup: Can I call a virtual function from a constructor? Yes, but be careful. It may not do what you expect. In a constructor, the virtual call mechanism is disabled because overriding from derived classes hasn’t yet happened. Objects are constructed from the base up, … Read more