#include <iostream>
using namespace std;
struct A
{
A()
{
std::cout << "A";
}
};
struct B: public A
{
B()
{
std::cout << "B";
}
};
struct C
{
C()
{
std::cout << "C";
}
B b;
A a;
};
int main()
{
C c;
return 0;
}
ABAC