In the following code:
struct X{
void stream(int){}
};
struct Y : public X{
void stream(int, int){}
};
int main()
{
Y y;
y.stream(2);
}
Why X::stream(int)
is not inherited?
Or it is hided with Y::stream(int, int)
. If so, why it hidden, not overridden?