-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSeat.h
46 lines (33 loc) · 759 Bytes
/
Seat.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
/****************************************************************
FILE: Seat.h
AUTHOR: Tommy Deng
s199762338
PURPOSE: Header file for the seat object.
****************************************************************/
#ifndef SEAT_H
#define SEAT_H
#include <iostream>
#include "Passenger.h"
#include <sstream>
using namespace std;
class Seat
{
protected:
Passenger* *passenger = new Passenger*;
int seatId;
bool reserved;
public:
// Default constructor
Seat();
// Parameterized contructor
Seat(int id);
// Destructor
~Seat();
// Accessor functions
bool getReserved();
// Mutator functions
void setReserved(bool r);
Passenger& getPassenger();
void setPassenger(string fn, string ln, string a, string p);
};
#endif // !SEAT_H