#include "flight.h" Flight::Flight(string newdestination, int totalSeats, int numMiles, FlightType newtypeOfFlight) { destination = newdestination; seatsRemaining = totalSeats; milesToFly = numMiles; typeOfFlight = newtypeOfFlight; } bool Flight::purchaseTix(int numTix) { if(seatsRemaining > numTix) { seatsRemaining -= numTix; return true; } return false; }