#include <iostream> using namespace std; struct A { A() { cout << "A"; } }; struct B : A { B() { cout << "B"; } }; struct C : A { C() { cout << "C"; } }; struct D : B, C { D() { cout << "D"; } }; int main() { D d; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment