-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmployee.h
More file actions
38 lines (36 loc) · 923 Bytes
/
Employee.h
File metadata and controls
38 lines (36 loc) · 923 Bytes
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
#pragma once
#include<iostream>
using namespace std;
class Employee {
public:
double bs;
double price;
Employee* band;
unsigned int id;
public:
static unsigned int totalEmployee;
Employee(unsigned int id, double basicsalary, double price, Employee* bandemployee);
double getPrice();
unsigned int getID() const;
void setBandEmployee(Employee* employee);
Employee& operator+=(int salemoney);
virtual double computeSalary();
virtual void showStatus();
};
class SuperEmployee:public Employee {
public:
int level;
public:
SuperEmployee(unsigned int id, double basicsalary, double price,\
Employee* bandemployee, int level);
double computeSalary();
void showStatus();
};
class Manager :public Employee {
public:
int workyear;
public:
Manager(int id, double basicsalary, double price, Employee* bandemployee, int workyear);
double computeSalary();
void showStatus();
};