-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCCO.h
41 lines (38 loc) · 993 Bytes
/
CCO.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "Employee.h"
#include "Feedback.h"
#include <cstring>
#define SIZE1 2
using namespace std;
class CCO : public Employee{
private:
string ccoID;
string ccoEmail;
Feedback *feedback[SIZE1];
public:
CCO(){
ccoID = "C000";
ccoEmail = "@gmail.com";
}
CCO(string COID, string email,string EID, string name, float salary, int attent, string contact, int hrs, float rate):Employee(EID,name,salary,attent,contact,hrs,rate)
{
ccoID = COID;
ccoEmail = email;
}
void displayinfo(){
cout << "CCO ID : "<< ccoID<<endl;
cout << "CCO Email : "<<ccoEmail << endl<<endl;
for(int i=0; i<SIZE1; i++){
feedback[i]->displayFeedback();
}
}
void reviewFeedback(Feedback *feed1,Feedback *feed2){
feedback[0] = feed1;
feedback[1] = feed2;
}
float calcSalary(){
return(employeeBasicSalary + otHrs * otRate);
}
~CCO(){
cout << "CCO Deleted " <<endl;
}
};