-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStudent.h
42 lines (27 loc) · 868 Bytes
/
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
#ifndef STUDENT_H
#define STUDENT_H
#include <Person.h>
#include <vector>
using namespace std;
class Student : public Person
{
public:
Student();
Student(string name,string surname,int age,int absence,int id):Person(name,surname,age){//Otherwise all the process getting complicated and We got wierd errors ???
this->absence=absence;
this->id=id;
};
Student(string name,string surname,int age,int id):Person(name,surname,age){//Otherwise all the process getting complicated and We got wierd errors ???
this->id=id;
this->absence=0;
};
int absence;
int id;
int getAbsence();
void setAbsence(int absence);
int getId();
void setId(int id);
protected:
private:
};
#endif // STUDENT_H