-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathManager.h
65 lines (58 loc) · 1.7 KB
/
Manager.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
64
65
/** Manager class inherited from SalariedEmp class.
*
* #include "Manager.h" <BR>
* -llib
*
*/
#ifndef MANAGER_H
#define MANAGER_H
// SYSTEM INCLUDES
#include<iostream>
using std::string;
// LOCAL INCLUDES
#include "SalariedEmp.h"
// Manager class definition
class Manager : public SalariedEmp {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Manager(const string& = "", const string& = "", const Date& = Date::sGetDefaultDate(), const Date& = Date::sGetDefaultDate(), const Address& = Address::sGetDefaultAddress(), double = 0.0, double = 0.0, const string& = "");
// Use compiler-generated copy constructor, assignment, and destructor.
// Manager(const Manager&);
// Manager& operator=(const Manager&);
// ~Manager();
// OPERATIONS
/** Overriding function that prints all the details of the Manager.
*
* @param void
*
* @return void
*/
void PrintEmployee()const;
// ACCESS
// setters
void SetDepartment(const string& = "");
void SetManager(const string& = "", const string& = "", const Address& = Address::sGetDefaultAddress(), double = 0.0, double = 0.0, const string& = "");
/**
# @overload void SetManager(const SalariedEmp& aSalariedEmp, const string& = "");
*/
void SetManager(const SalariedEmp& aSalariedEmp, const string& = "");
/**
# @overload void SetManager(const string& = "");
*/
void SetManager(int =0, const string& = "");
/**
# @overload void SetManager(const Manager& aManager);
*/
void SetManager(const Manager& aManager);
// getters
const string& GetDepartment()const;
const Manager& GetManager()const;
private:
// DATA MEMBERS
string mDepartment;
};
// end class Manager
#endif
// _MANAGER_H_