Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Clarifying, because the object is not a Manager, it's an Employee.

...

When f() is called with the designer argument, the formal parameter in f() is sliced and information is lost. When the Manager object is object e is printed, Employee::print() is called instead of Manager::print(), resulting in the following output:

...