employee

                                                 firstName, lastName, monthlyPay

 

readEmployee

computePay

displayEmployee

 

 

 

 

salesPerson              salayStaff            hourlyWorker

baseSalary, amountOfSales       monthlySalary                   workHours, hourlyRate

 

readEmployee

 

readEmployee

 

readEmployee

computePay

computePay

computePay

displayEmployee

displayEmployee

displayEmployee

 

 

Classes and Inheritance:

 

See the conceptual depiction of a 2-level class hierarchy of four classes in the diagram above:

 

 

 

Implementation of the Classes:

Define for each class a header file and a .cpp file to implement the member functions in the following way:

 

 

Polymorphic Data Structures:

 

Main function and the menu service: your main function should provide a menu of service that allows

See the main function of the file figureTest.cpp in the 2D figure example to see how this may be done.