...
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:
...