-
Notifications
You must be signed in to change notification settings - Fork 2
/
Course.h
43 lines (35 loc) · 901 Bytes
/
Course.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
#ifndef COURSE_H
#define COURSE_H
#include <string>
#include <iostream>
#define COURSE_FIELDS 7
using namespace std;
/**
* A simple Course Class to contain all the Course Args,
* and printing them if needed.
*
* to create a course Object, pass all needed Args.
* use getters to get valuse of course.
*/
class Course{
public:
Course(int serial, string name, string type, double points, double hours, double grade, string additions);
~Course();
void printCourse();
int getSerialNum(){return this->serialNum;}
string getName(){return this->name;}
string getType(){return this->type;}
double getPoints(){return this->points;}
double getHours(){return this->hours;}
double getGrade(){return this->grade;}
string getAddidtions(){return this->additions;}
private:
int serialNum;
string name;
string type;
double points;
double hours;
double grade;
string additions;
};
#endif