#include using namespace std; //myAssignmentOperator2.cpp class Flight { public: string from; string to; double distance; Flight(){ from = ""; to = ""; distance=0; } Flight(string f, string t, double d) { from = f; to = t; distance = d; } //Flight operator+(Flight f1); Flight operator=(Flight& f2); void show(){ cout<<"\n from " << from << " to " << to << " is " << distance <<" miles"; } }; Flight::Flight operator+(Flight & f1) { Flight temp; temp.from = f1.from; temp.to = f1.to; return temp; } int main() { Flight a1 ("Boston", "New York", 215); a1.show(); return 0; }