Order of constructor call in virtual inheritance

The constructors for virtual base classes are always called from the most derived class, using any arguments it might pass in. In your case, the most derived class doesn’t specify an initializer for A, so the default constructor is used.

Leave a Comment