Previous Slide Employee Example Next Slide

We will represent different types of employees:

  • a generic employee
  • a manager
  • a supervisor

For these employees, we'll store data, like their:

  • name
  • pay rate

And...we'll require some functionality, like being able to:

  • initialize the employee
  • get the employee's fields (e.g., name)
  • calculate the employee's pay


BU CAS CS - Introduction to Inheritance in C++
Copyright © 1993-2000 by Robert I. Pitts <rip@bu.edu> All Rights Reserved.