If I have this structure:
class Parent
{
public:
virtual void MyFunction() {// do something}
};
class Child
{
public:
virtual void MyFunction() {// do something else}
};
The Parent::MyFunction() seems to always be called, even with:
Child MyChild;
MyChild.MyFunction();
Is this expected?
David