D
struct A { A() { cout << "A"; } }; struct B : virtual A { B() { cout << "B"; } }; struct C : virtual A { C() { cout << "C"; } }; struct D : B, C { D() { cout << "D"; } };
A
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment