Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include "degree.h"
- using namespace std;
- class Student {
- private:
- string studentID;
- string firstName;
- string lastName;
- string emailAddress;
- int age;
- int daysInCourse[3];
- DegreeProgram degreeProgram;
- public:
- Student(string studentId, string firstName, string lastName, string emailAddress, int age, int daysInCourse0, int daysInCourse1,int daysInCourse2, DegreeProgram degreeProgram);
- //accessors.
- string GetStudentId();
- string GetFirstName();
- string GetLastName();
- string GetEmailAddress();
- int GetAge();
- //take int of index to return
- int GetDaysInCourse(int index);
- DegreeProgram GetDegreeProgram();
- //mutators.
- void SetStudentId(string studentId);
- void SetFirstName(string firstName);
- void SetLastName(string lastName);
- void SetEmailAddress(string emailAddress);
- void SetAge(int age);
- //take int and value to input.
- void SetDaysInCourse(int numCourseDaysIndex,int numCourseDaysValue);
- void SetDegreeProgram(DegreeProgram degreeProgram);
- void Print();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement