-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudentType.h
58 lines (43 loc) · 1.36 KB
/
studentType.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
58
/********************************************************************************************************************
* AUTHOR : Ngoc Dang Tran;
* STUDENT ID : 1197865;
* ASSIGNMENT A12: Inheritance
* CLASS : CS1B;
* SECTION : MW: 9:30am - 11:50am;
* DUE DATE : 03/17/2021;
********************************************************************************************************************/
#ifndef STUDENTTYPE_H_
#define STUDENTTYPE_H_
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
#include "personType.h"
class studentType: public personType
{
public:
//constructors
studentType();
// fName, lName//
studentType(string firstName, string lastName);
//Constructor with paramters
studentType(string firstName, string lastName, string oneAddress, double tall, string birth, char fM
, double gPA, string classi, string numID);
//Destructor
~studentType() {};
//setters
void setGPA(double);
void setID(string);
void setClassification(string);
//getters
double getGPA() const;
string getID() const;
string getClassification() const;
void print() const; //print method
bool equals(const studentType other[], const int) const; //equals method
private:
string id; //added every id 'should' be unique
double gpa;
string classification;
};
#endif /* STUDENTTYPE_H_ */