#include <iostream>
using namespace std;
class A
{
public:
A() { f(); }
virtual void f() { std::cout << "A::f()\n"; }
};
class B : public A
{
public:
void f() { std::cout << "B::f()\n"; }
};
int main() {
// your code goes here
B b;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQQp7CnB1YmxpYzoKCUEoKSB7IGYoKTsgfQoJdmlydHVhbCB2b2lkIGYoKSB7IHN0ZDo6Y291dCA8PCAiQTo6ZigpXG4iOyB9Cn07CgpjbGFzcyBCIDogcHVibGljIEEKewpwdWJsaWM6Cgl2b2lkIGYoKSB7IHN0ZDo6Y291dCA8PCAiQjo6ZigpXG4iOyB9Cn07CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCUIgYjsKCXJldHVybiAwOwp9