1234567891011121314
class Parent {public: virtual void f(short) {std::cout << "B::f" << std::endl;}};class Child : public Parent {public: virtual void f(int) override {std::cout << "D::f" << std::endl;}};int main(){ return 0;}