-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSalariedEmp.h
63 lines (56 loc) · 1.62 KB
/
SalariedEmp.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/** SalariedEmp class inherited from Employee class.
*
* #include "SalariedEmp.h" <BR>
* -llib
*
*/
#ifndef SALARIED_EMP_H
#define SALARIED_EMP_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Employee.h"
// SalariedEmp class definition
class SalariedEmp : public Employee {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
SalariedEmp(const string& = "", const string& = "", const Date& = Date::sGetDefaultDate(), const Date& = Date::sGetDefaultDate(), const Address& = Address::sGetDefaultAddress(), double = 0.0, double = 0.0);
// Use compiler-generated copy constructor, assignment, and destructor.
// SalariedEmp(const SalariedEmp&);
// SalariedEmp& operator=(const SalariedEmp&);
// ~SalariedEmp();
// OPERATIONS
/** Overriding function that prints all the details of the Salaried employee.
*
* @param void
*
* @return void
*/
void PrintEmployee()const;
/** Overriding function that calculates net salary
* of the salaried employee
*
* @param void
*
* @return net salary
*/
virtual double CalcSalary()const;
// ACCESS
// setters
void SetSalariedEmp(const string& = "", const string& = "", const Address& = Address::sGetDefaultAddress(), double = 0.0, double = 0.0);
/**
# @overload void SetSalariedEmp(const Employee& aEmployee);
*/
void SetSalariedEmp(const Employee& aEmployee);
/**
# @overload void SetSalariedEmp(const SalariedEmp& aSalariedEmp);
*/
void SetSalariedEmp(const SalariedEmp& aSalariedEmp);
// getters
const SalariedEmp& GetSalariedEmp()const;
};
// end class SalariedEmp
#endif
// _SALARIED_EMP_H_