-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassenger.h
59 lines (50 loc) · 1.37 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
#ifndef PASSENGER_H
#define PASSENGER_H
#include <iostream>
#include <string>
#include "flight.h"
#include "passport.h"
using namespace std;
class Passenger : public User{
protected:
unsigned long long int CNIC;
string name;
int age;
bool adult;
Passport p1;
int accountNumber;
int PIN;
double accountBalance;
Flight f1;
Flight* flightHistory;
int NPAFSpoints;
static int total;
public:
Passenger(unsigned long long int a=0, string x="", int b=0,string user="", string pass="", int pin=0 );
//setters&getters
void setCNIC(int x);
void setName(string x);
void setAge(int x);
void setAccountNumber(int x);
void setPin(int x);
void setAccountBalance(double x);
int getCNIC() const;
string getName() const;
int getAge() const;
int getAccountNumber() const;
int getPIN() const;
double getAccountBalance() const;
Passport& getPassport();
void setPassport(Passport x);
void setFlight(Flight x);
int getTotal() const;
//Other members
void bookFlight();
void cancelFlight();
void pay();
void calculatePoints();
void updateDetails();
void reserveSeat();
void rescheduleFlight();
};
#endif