#include <CommissionWorker.hpp>
Inheritance diagram for CommissionWorker::

Public Methods | |
| CommissionWorker (const char *first, const char *last, double sal, double comm, UINT qty) | |
| void | setSalary (double sal) |
| void | setCommission (double comm) |
| void | setQuantity (UINT qty) |
| void | printName () const |
| virtual double | earnings () const |
Private Attributes | |
| double | salary |
| double | commission |
| UINT | quantity |
|
||||||||||||||||||||||||
|
Definition at line 7 of file CommissionWorker.inl. 00011 : Employee( first, last ), salary( sal ) 00012 commission( comm ), quantity( qty ) { } |
|
|
Reimplemented from Employee. Definition at line 30 of file CommissionWorker.inl. 00030 {
00031 return ( salary + commission * quantity );
00032 }
|
|
|
Reimplemented from Employee. Definition at line 35 of file CommissionWorker.inl. 00036 {
00037 cout << "\nCommission worker: ";
00038 Employee::print();
00039 }
|
|
|
Definition at line 20 of file CommissionWorker.inl. 00020 {
00021 commission = comm;
00022 }
|
|
|
Definition at line 25 of file CommissionWorker.inl. 00025 {
00026 quantity = qty;
00027 }
|
|
|
Definition at line 15 of file CommissionWorker.inl. 00015 {
00016 salary = sal;
00017 }
|
|
|
Definition at line 20 of file CommissionWorker.hpp. |
|
|
Definition at line 21 of file CommissionWorker.hpp. |
|
|
Definition at line 19 of file CommissionWorker.hpp. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001