1 2 3 4 5 6 7 8 9 10 11 12
struct Base { int m_base_val = 42; }; struct Foo : public Base { int m_derived_val = 137; }; int main() { Foo foo; return 0; }