1struct base 2{ 3 short b; 4 virtual int foo(); 5}; 6 7struct derived: virtual base 8{ 9 int d; 10 virtual int foo(); 11 virtual int bar(); 12}; 13