// Project Copy // File copy.cpp #include using namespace std; #include "person.h" int main() { Person x("Sally", 'M', 34); Person y = x; Person z("Tom", 'M', 34); Person w("Jane", 'F', 28); x.display(); y.display(); z.display(); w.display(); cout << endl; cout << x.equals(y) << " " << x.equals(z) << " " << x.equals(w) << " " << endl; return EXIT_SUCCESS; } // Output: // In copy constructor. // Sally M 34 // Sally M 34 // Tom M 34 // Jane F 28 // // In copy constructor. // In copy constructor. // In copy constructor. // 1 1 0