C++ Polymorphism Question


ParentType* A = new ChildType();
myMethod(*A);


void myMethod(ParentType& x);
void myMethod(ChildType& x);

If ChildType extends ParentType, which function gets called?