Create the .cpp file of this .h file in C++ #include using namespace std; int GetNextID(); class Passenger { public: Passenger(); // New passenger, assigning ID using GetNextID Passenger(int, string,...



Create the .cpp file of this .h file in C++



#include
using namespace std;


int GetNextID();


class Passenger {
public:


Passenger(); // New passenger, assigning ID using GetNextID
Passenger(int, string, string); // ID, origin, destination
void Initialize(int, string, string); // ID, origin, destination
int GetID() {return ID;}
string GetOrigin(){ return origin;}
string GetDest() {return destination;}


private:
int ID; // A unique ID number for the passenger
string origin; //Airport identifier
string destination; // Airport identifier
int GetNextID(); // Assigns ID's sequentially, starting with 1001
};



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here