-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDoctor_Task1.h
78 lines (65 loc) · 1.37 KB
/
Doctor_Task1.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
66
67
68
69
70
71
72
73
74
75
76
77
78
/** Doctor class inherited from Person class.
*
* #include "Doctor_Task1.h" <BR>
* -llib
*
*/
#ifndef DOCTOR_TASK1_H
#define DOCTOR_TASK1_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Person_Task1.h"
// Doctor class definition
class Doctor : public Person {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Doctor(char* = NULL, int = 0, char = '/0', char* = NULL, int = 0);
/** Copy constructor.
*/
Doctor(const Doctor&);
/** assignment operator.
*/
Doctor& operator =(const Doctor&);
// Use compiler-generated destructor.
// ~Doctor();
// OPERATIONS
/** function that depicts checking (patients) by Doctor.
*
* @param void
*
* @return void
*/
void CheckUp();
/** function that depicts giving prescription by Doctor.
*
* @param void
*
* @return void
*/
void Prescribe();
// ACCESS
// setters
void SetSalary(int = 0);
void SetDesignation(char* = "Doctor");
void SetDoctor(char* = NULL, int = 0, char = '/0', int = 0);
/**
# @overload void SetDoctor(int = 0);
*/
void SetDoctor(int = 0);
/**
# @overload void SetDoctor(const Doctor& aDoctor);
*/
void SetDoctor(const Doctor& aDoctor);
// getters
int GetSalary()const;
const Doctor& GetDoctor()const;
private:
// DATA MEMBERS
int mSalary;
};
// end class Doctor
#endif
// _DOCTOR_TASK1_H_