1 2 3 4 5 6 7 8 9 10 11
class A { public: virtual int f(int x); }; class B : public A { public: virtual void f(int x); }; int main() {}