Chapter 12: Object-Oriented Programming: Inheritance

  1. a ComissionEmployee class which represents an employee who is paid a percentage of gross sales
  2. Creating a BasePlusCommisionEmployee Class Without Using Inheritance
  3. Creating a BasePlusCommissionEmployee Class Inherited from CommissionEmployee
  4. ComissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using protected Data
  5. However, the author suggests , from Software Engineering Observation, to declare private data and access them via the class's set and get member functions.
  6. 12.5 Constructors and Destrucotrs in Derived Classes