DEV Community

Discussion on: Virtual base class in c++

Collapse
 
pauljlucas profile image
Paul J. Lucas

You didn't mention one of the important things about virtual bases classes in that the most derived class must explicitly call the virtual base constructor (something that non-virtual inheritance doesn't allow — assuming the base class has and you want to call a non-default constructor).