-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFullTimeEmployee.h
36 lines (25 loc) · 892 Bytes
/
FullTimeEmployee.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
#ifndef FULLTIMEEMPLOYEE_H
#define FULLTIMEEMPLOYEE_H
#include "Employee.h"
class FullTimeEmployee : public Employee
{
private:
int monthlySalary;
public:
FullTimeEmployee(); // Default constructor
FullTimeEmployee(int) : Employee(1) {}
FullTimeEmployee(const FullTimeEmployee &other);
~FullTimeEmployee(); // Destructor
// Friend function to set full-time employee data
void set_fulltime_employee_data();
int calculateSalary() const override; // Override calculateSalary
void displayInfo() const; // Override displayInfo
// Setter methods
void setMonthlySalary();
// Getter methods
int getMonthlySalary() const;
friend ostream &operator<<(ostream &out, const FullTimeEmployee &ftEmp);
};
ostream &operator<<(ostream &out, const FullTimeEmployee &ftEmp);
#include "FullTimeEmployee.cpp"
#endif // FULLTIMEEMPLOYEE_H