-
Notifications
You must be signed in to change notification settings - Fork 1
/
Teacher_Task1.h
79 lines (65 loc) · 1.38 KB
/
Teacher_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
79
/** Teacher class inherited from Person class.
*
* #include "Teacher_Task1.h" <BR>
* -llib
*
*/
#ifndef TEACHER_TASK1_H
#define TEACHER_TASK1_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Person_Task1.h"
// Teacher class definition
class Teacher : public Person {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Teacher(char* = NULL, int = 0, char = '/0', char* = NULL, int = 0);
/** Copy constructor.
*/
Teacher(const Teacher&);
/** assignment operator.
*/
Teacher& operator =(const Teacher&);
// Use compiler-generated destructor.
// ~Teacher();
// OPERATIONS
/** function that depicts teaching of Teacher.
*
* @param void
*
* @return void
*/
void Teach();
/** function that depicts taking exams by Teacher.
*
* @param void
*
* @return void
*/
void TakeExam();
// ACCESS
// setters
void SetSalary(int = 0);
void SetDesignation(char* = "Teacher");
void SetTeacher(char* = NULL, int = 0, char = '/0', int = 0);
/**
# @overload void SetTeacher(int = 0);
*/
void SetTeacher(int = 0);
/**
# @overload void SetTeacher(const Teacher& aTeacher);
*/
void SetTeacher(const Teacher& aTeacher);
// getters
int GetSalary()const;
const Teacher& GetTeacher()const;
private:
// DATA MEMBERS
int mSalary;
};
// end class Teacher
#endif
// _TEACHER_TASK1_H_