C++面向对象程序设计
13.6
Case Study: Payroll System Using Polymorphism 13.6.1 13.6.2 13.6.3 13.6.4 13.6.5 13.6.6 Creating Abstract Base Class Employee Creating Concrete Derived Class SalariedEmployee Creating Concrete Derived Class HourlyEmployee Creating Concrete Derived Class CommissionEmployee Creating Indirect Concrete Derived ClassBasePlusCommissionEmployee
Demonstrating Polymorphic Processing
13.7 13.8
(Optional) Polymorphism, Virtual Functions and Dynamic Binding "Under the Hood" Case Study: Payroll System Using Polymorphism and Run-Time Type Information with Downcasting, dynamic_cast, typeid andtype_info
13.9 13.10 13.11
Virtual Destructors (Optional) Software Engineering Case Study: Incorporating Inheritance into the ATM System Wrap-Up