1234567
class boo{ int a; }; class foo: boo{ int b; //int a is also present as it is inherited from boo };
12345678
class foo{ }boo; //is the same as this class foo{ }; foo boo;
123456789
class boo{ public: int a; private: int b; }; class foo: boo{ int c; };
class boo{ public: int a; private: int b; }; class foo: public boo{ int c; };