-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult.cpp
43 lines (34 loc) · 811 Bytes
/
result.cpp
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
#include "result.h"
//Constructor
Result::Result(int id, int stdId, int lectId, int markId):m_id(id),m_studentId(stdId),m_lectureId(lectId),m_markId(markId)
{
}
Result::Result(Result *result):m_id(result->getId ()),m_studentId(result->getStudentId ()),m_lectureId(result->getLectureId ()),m_markId(result->getMarkId ())
{
}
//Getter and Setter
//Id
int Result::getId () {
return this->m_id;
}
//Student Id
int Result::getStudentId () {
return this->m_studentId;
}
void Result::setStudentId (int id) {
this->m_studentId=id;
}
//Lecture Id
int Result::getLectureId () {
return this->m_lectureId;
}
void Result::setLectureId (int id) {
this->m_lectureId=id;
}
//Mark Id
int Result::getMarkId () {
return this->m_markId;
}
void Result::setMarkId (int id) {
this->m_markId=id;
}