Question: Modify the program in Q 1 to use overloaded operators operator and operator rather than read ( ) and write ( ) functions. Implement these

Modify the program in Q1 to use overloaded operators operator and operator rather than read() and write() functions. Implement these operators for all the classes and modify the main program accordingly. The program input/output remains unchanged.
The program in Q1 is modified to store the workforce records (of various employee types) in a vector using the following main program.
(a) Use the declaration and implementation of classes from Q1 and run the program using the followig main, and the input values from Q1. Does the program work properly?
(b) Make the necessary changes to the classes (not main) to make the program generate the desired output.
Main Program Using Classes EmployeeTypes
File: testemployeetypes. epp
Application program using elasses employeetypes
Programimer: your name
Date:
#include "employeetypes. hm
int main (void)
{
char type; // employee type
ofstream fout ("employeetypesout.tt?;
employee ptr :
vector (:=1'
 Modify the program in Q1 to use overloaded operators operator and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!