45
45
# EmployeeList as an Employee*. Previously, Octave resolved the call
46
46
# immediately in CEO, but now Octave thinks the object is an instance of
47
47
# class Employee (actually EmployeePtr). So the call passes through the
49
49
# eventually ending up back at the CEO implementation of getPosition().
50
50
# The call to getTitle() for item 3 runs the C++ Employee::getTitle()
51
51
# method, which in turn calls getPosition(). This virtual method call