Determining an Object’s Type with dynamic_cast
In this example, as we encounter a BasePlusCommissionEmployee
object, we wish to increase its base salary by 10 percent. Since we process the Employee
s polymorphically, ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.