/* * template.cpp * * Patrick Simianer
* YYYY-MM-DD */ #include using namespace std; class A { public: int a; }; class B : public A { public: int b; }; int main(int argc, char const* argv[]) { B b; b.b = 1; b.a = 2; cout << b.a << endl; return 0; }