struct B { virtual int foo(); }; int B::foo() { return 2; }