Virtual Functions: C++ Version
for (emp = employee_list; emp != NULL; emp = emp->next)
At run-time (not compile-time), your program automatically decides if each emp is pointing to an employee, a manager, or a summer student -- and calls the correct function for you!
Note, there is some overhead associated with this decision.