Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: clarification

...

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

...