-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.h
More file actions
executable file
·38 lines (32 loc) · 790 Bytes
/
Copy pathStudent.h
File metadata and controls
executable file
·38 lines (32 loc) · 790 Bytes
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
// Jaden Heller
// 2328279
// jaheller@chapman.edu
// CPSC-350-01
// Assignment 6
//Class used to create student objects in the database
#ifndef STUDENT_H
#define STUDENT_H
#include <iostream>
#include <string>
#include "Person.h"
using namespace std;
class Student : public Person{
public:
Student();
Student(int st_id, string st_name, string st_level, string st_major, double st_gpa, int st_advisor);
~Student();
//sets:
void setMajor(string studentMajor);
void setGPA(double studentGrade);
void setAdvisor(int studentAdvisorID);
//gets:
string getMajor();
double getGPA();
int getStudentsAdvisor();
void printInfo();
private:
string major;
double gpa;
int advisorID;
};
#endif