-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudent.h
54 lines (47 loc) · 1.19 KB
/
Student.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
#pragma once
#ifndef ITS61804_ASGN_STUDENT_H
#define ITS61804_ASGN_STUDENT_H
#include <string>
using namespace std;
class Student {
private:
int studentNo;
string fullName;
char gender;
int level;
int english;
int malay;
int math;
int history;
int moral;
public:
/* default constructors */
Student();
~Student();
Student(int studentNo, string fullName, char gender, int level);
Student(int studentNo, string fullName, char gender, int level, int english, int malay, int math,
int history, int moral);
/* get and set functions */
int getStudentNo();
void setStudentNo(int studentNo);
string getFullName();
void setFullName(string fullName);
char getGender();
void setGender(char gender);
int getLevel();
void setLevel(int level);
int getEnglishMarks();
void setEnglishMarks(int english);
int getMalayMarks();
void setMalayMarks(int malay);
int getMathMarks();
void setMathMarks(int math);
int getHistoryMarks();
void setHistoryMarks(int history);
int getMoralMarks();
void setMoralMarks(int moral);
/* other functions */
virtual void displayRecord();
char marksGrader(int marks);
};
#endif //ITS61804_ASGN_STUDENT_H