struct Base
{
private:
void foo(float);
};
struct Derived: public Base
{
public:
void foo(int);
};
void Derived::foo(int){
return;
}
int main()
{
Derived d;
d.foo(5.0f);
}
c3RydWN0IEJhc2UKewpwcml2YXRlOgogICAgdm9pZCBmb28oZmxvYXQpOwp9OwoKc3RydWN0IERlcml2ZWQ6IHB1YmxpYyBCYXNlCnsKcHVibGljOgogICAgdm9pZCBmb28oaW50KTsKfTsKCnZvaWQgRGVyaXZlZDo6Zm9vKGludCl7CglyZXR1cm47Cn0KCgppbnQgbWFpbigpCnsKICAgIERlcml2ZWQgZDsKICAgIGQuZm9vKDUuMGYpOwp9Cg==