Introduction to OOP Chapter 15: Overloading : next previous audio real text

Resolution Performed at Compile Time

Note that resolution is almost always performed at compile time, based on static types, and not dynamic values.
class Parent { ... };

class Child : public Parent { ... };

void Test(Parent * p) { cout << "in parent" << endl; }
void Test(Child * c) { cout << "in child" << endl }

	Parent * value = new Child();

	Test(value); 
Example will, perhaps surprizingly, execute parent function.
Intro OOP, Chapter 15, Slide 07