-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.cpp
More file actions
57 lines (46 loc) · 825 Bytes
/
Student.cpp
File metadata and controls
57 lines (46 loc) · 825 Bytes
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
#include "Student.h"
#include <iostream>
using namespace std;
Student::Student(int _id, string _name, string _surName, int _grade)
{
id = _id;
name = _name;
surName = _surName;
grade = _grade;
}
void Student::setId(int _id)
{
id = _id;
}
void Student::setName(string _name)
{
name = _name;
}
void Student::setSurName(string _surName)
{
surName = _surName;
}
void Student::setGrade(int _grade)
{
grade = _grade;
}
int Student::getId()
{
return id;
}
string Student::getName()
{
return name;
}
string Student::getSurName()
{
return surName;
}
int Student::getGrade()
{
return grade;
}
void Student::getInformation()
{
cout << Student::id << " Student name, surname and grade are : " << Student::name << " " << Student::surName << ", " << Student::grade << endl;
}