-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.cpp
More file actions
57 lines (42 loc) · 1.08 KB
/
Student.cpp
File metadata and controls
57 lines (42 loc) · 1.08 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
//
// Created by Jinyung Tan on 22/06/2018.
//
#include "Student.h"
Student::Student() {}
Student::Student(int studentNo, const string &fullName, char gender) : studentNo(studentNo), fullName(fullName),
gender(gender) {}
int Student::getStudentNo() const {
return studentNo;
}
void Student::setStudentNo(int studentNo) {
Student::studentNo = studentNo;
}
const string &Student::getFullName() const {
return fullName;
}
void Student::setFullName(const string &fullName) {
Student::fullName = fullName;
}
char Student::getGender() const {
if (gender == 'M'){
cout << "Male - ";
return gender;
}
else if (gender == 'F'){
cout << "Female - ";
return gender;
}
}
void Student::setGender(char gender) {
Student::gender = gender;
}
string Student::getTotalScore() {
}
char Student::getFinalGrade() {
}
char ArtStudent::getFinalGrade() {
return Student::getFinalGrade();
}
char ScienceStudent::getFinalGrade() {
return Student::getFinalGrade();
}