-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent.h
47 lines (41 loc) · 1.12 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
//student.h
#pragma once
#include"degree.h"
#include<string>
class Student {
public:
//Constuctors
Student();
Student(std::string studentID,
std::string firstName, std::string lastName,
std::string emailAddress, int age, int
daysToComplete[], DegreeProgram
degreeProgram);
//Accessors(getters)
std::string getStudentID() const;
std::string getFirstName() const;
std::string getLastName() const;
std::string getEmailAddress() const;
int getAge() const;
const int* getDaysToComplete() const;
DegreeProgram getDegreeProgram()
const;
//Mutators (setters)
void setStudentID(std::string studentID);
void setFirstName(std::string firstName);
void setLastName(std::string lastName);
void setEmailAddress(std::string emailAddress);
void setAge(int age);
void setDaysToComplete(int daysToComplete[]);
void setDegreeProgram(DegreeProgram degreeProgram);
void print() const;
private:
// Member variables
std:: string studentID;
std:: string firstName;
std:: string lastName;
std:: string emailAddress;
int age;
int daysToComplete[3];
DegreeProgram degreeProgram;
};