-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPassenger.h
64 lines (49 loc) · 1.15 KB
/
Passenger.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
59
60
61
62
63
64
/****************************************************************
FILE: Passenger.h
AUTHOR: Tommy Deng
s199762338
PURPOSE: Header file for the passenger object.
****************************************************************/
#ifndef PASSENGER_H
#define PASSENGER_H
#include <iostream>
#include <sstream>
#include <vector>
#include "BoardingPass.h"
using namespace std;
class Passenger
{
protected:
Economy *economy = new Economy;
Business *business = new Business;
int flightId;
int seatId;
string firstName;
string lastName;
string address;
string phoneNumber;
public:
// Default contructor
Passenger();
// Parametized contructor
Passenger(string fn, string ln, string a, string p);
// Destructor
~Passenger();
// Accessor functions
int getFlightId();
int getSeatId();
string getFirstName();
string getLastName();
string getAddress();
string getPhoneNumber();
// Mutator functions
void setFlightId(int p);
void setSeatId(int s);
void setFirstName(string n);
void setLastName(string n);
void setAddress(string a);
void setPhoneNumber(string p);
Economy& getEconomy();
Business& getBusiness();
};
#endif // !PASSENGER_H