Say I got:
class X_
{
public:
void do() { }
}
class Y_ : public X_
{
}
And I have this function:
void foo(X_ whatever)
{
whatever.do();
}
Can I send a "Y_" object to the foo function, would this work?
I just realized that I could have tested this myself :)