-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFinalReport.cpp
More file actions
103 lines (77 loc) · 2.42 KB
/
FinalReport.cpp
File metadata and controls
103 lines (77 loc) · 2.42 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//
// Created by Jinyung Tan on 23/06/2018.
//
#include "FinalReport.h"
FinalReport::FinalReport() {}
FinalReport::FinalReport(int studentNo, const string &fullName, char gender, int classID, const string &className,
int yearForm, char yearGrade, int subjectID, const string &subjectName, char subjectType,
double score) : studentNo(studentNo), fullName(fullName), gender(gender), classID(classID),
className(className), yearForm(yearForm), yearGrade(yearGrade),
subjectID(subjectID), subjectName(subjectName), subjectType(subjectType),
score(score) {}
int FinalReport::getStudentNo() const {
return studentNo;
}
void FinalReport::setStudentNo(int studentNo) {
FinalReport::studentNo = studentNo;
}
const string &FinalReport::getFullName() const {
return fullName;
}
void FinalReport::setFullName(const string &fullName) {
FinalReport::fullName = fullName;
}
char FinalReport::getGender() const {
return gender;
}
void FinalReport::setGender(char gender) {
FinalReport::gender = gender;
}
int FinalReport::getClassID() const {
return classID;
}
void FinalReport::setClassID(int classID) {
FinalReport::classID = classID;
}
const string &FinalReport::getClassName() const {
return className;
}
void FinalReport::setClassName(const string &className) {
FinalReport::className = className;
}
int FinalReport::getYearForm() const {
return yearForm;
}
void FinalReport::setYearForm(int yearForm) {
FinalReport::yearForm = yearForm;
}
char FinalReport::getYearGrade() const {
return yearGrade;
}
void FinalReport::setYearGrade(char yearGrade) {
FinalReport::yearGrade = yearGrade;
}
int FinalReport::getSubjectID() const {
return subjectID;
}
void FinalReport::setSubjectID(int subjectID) {
FinalReport::subjectID = subjectID;
}
const string &FinalReport::getSubjectName() const {
return subjectName;
}
void FinalReport::setSubjectName(const string &subjectName) {
FinalReport::subjectName = subjectName;
}
char FinalReport::getSubjectType() const {
return subjectType;
}
void FinalReport::setSubjectType(char subjectType) {
FinalReport::subjectType = subjectType;
}
double FinalReport::getScore() const {
return score;
}
void FinalReport::setScore(double score) {
FinalReport::score = score;
}