| < Day Day Up > |
|
Payroll Application: Revisit the Payroll application shown in figure 13-14 in chapter 13. Overload the relational operators for both the HourlyEmployee and Salaried Employee classes. The challenge here will be deciding what attribute in each class to use for the comparison. The comparison could also be the result of a calculation.
Overload IOStream Insertion and Extraction Operators: Using the Payroll application from the previous chapter again, overload the stream insertion and extraction operators to save employees to a file, extract them from a file, and print them to the console.
| < Day Day Up > |
|