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