1 struct Foo { 2 virtual int bar(); 3 virtual int baz(); 4 } foo; 5 bar()6 int Foo::bar() { return 0; } baz()7 int Foo::baz() { return 1; } 8