-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstudent.h
58 lines (45 loc) · 1.17 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
55
56
57
/*
* File: student.h
* Author: Parker Lee
*
* Created on January 7, 2020, 10:32 AM
*/
#ifndef STUDENT_H
#define STUDENT_H
#include <string>
#include "degree.h"
using namespace std;
class Student {
protected:
string studentID;
string firstName;
string lastName;
string email;
int age;
int numDays[3];
Degree degree;
public:
// Constructors
Student(string studentID, string firstName, string lastName, string email, int age, int* numDays, Degree degree);
// Accessors (Getters)
string getStudentID() const;
string getFirstName() const;
string getLastName() const;
string getEmail() const;
int getAge() const;
int *getNumDays();
// Mutators (Setters)
void setStudentID(string studentID);
void setFirstName(string firstName);
void setLastName(string lastName);
void setEmail(string email);
void setAge(int age);
void setNumDays(int day0, int day1, int day2);
void setDegree(Degree degree);
// Virtual functions
virtual void print();
virtual Degree getDegreeProgram() = 0;
// Destructor
~Student();
};
#endif /* STUDENT_H */