-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.h
42 lines (36 loc) · 1.18 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
//header file for student.cpp, does not contain definitions
#pragma once
using std::string;
//static array degreeString used in print() function to avoid having to directly convert enums to strings
static const string degreeString[] = { "Security", "Network", "Software", "None" };
class Student {
private:
int age;
string lastName, firstName, email, studentID;
const static int daysArraySize = 3;
int numberOfDays[daysArraySize];
DegreeProgram degree;
public:
//getter functions
int getAge();
string getLastName();
string getFirstName();
string getEmail();
string getStudentID();
int *getNumberOfDays();
DegreeProgram getDegreeProgram();
//setter functions
void setAge(int newAge);
void setLastName(string newLastName);
void setFirstName(string newFirstName);
void setEmail(string newEmail);
void setStudentID(string newStudentID);
void setNumberOfDays(int *newNumberOfDays);
void setDegreeProgram(DegreeProgram newDegreeProgram);
//print function
void print(string printInfo);
//default constructor, constructor and destructor
Student();
Student(string studentID, string FirstName, string lastName, string email, int age, int *numberOfDays, DegreeProgram degree);
~Student();
};