-
Notifications
You must be signed in to change notification settings - Fork 1
/
Student_Task1.h
83 lines (69 loc) · 1.49 KB
/
Student_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
80
81
82
83
/** Student class inherited from Person class.
*
* #include "Student_Task1.h" <BR>
* -llib
*
*/
#ifndef STUDENT_TASK1_H
#define STUDENT_TASK1_H
// SYSTEM INCLUDES
#include<iostream>
// LOCAL INCLUDES
#include "Person_Task1.h"
// Student class definition
class Student : public Person {
public:
// LIFECYCLE
/** Default + Overloaded constructor.
*/
Student(char* = NULL, int = 0, char = '/0', char* = NULL, char* = NULL, int = 0);
/** Copy constructor.
*/
Student(const Student&);
/** Destructor.
*/
~Student();
/** assignment operator.
*/
Student& operator =(const Student&);
// OPERATIONS
/** function that depicts study of Student.
*
* @param void
*
* @return void
*/
void Study();
/** function that depicts exams of Student.
*
* @param void
*
* @return void
*/
void HeldExam();
// ACCESS
// setters
void SetProgram(char* = NULL);
void SetStudyYear(int = 0);
void SetDesignation(char* = "Student");
void SetStudent(char* = NULL, int = 0, char = '/0', char* = NULL, int = 0);
/**
# @overload void SetStudent(int = 0, char* = NULL);
*/
void SetStudent(int = 0, char* = NULL);
/**
# @overload void SetStudent(const Student& aStudent);
*/
void SetStudent(const Student& aStudent);
// getters
char* GetProgram()const;
int GetStudyYear()const;
const Student& GetStudent()const;
private:
// DATA MEMBERS
char* mProgram;
int mStudyYear;
};
// end class Student
#endif
// _STUDENT_TASK1_H_