// Project Person // File main.cpp #include using namespace std; #include "person.h" int main() { // Default constructor call. Person x; // Parameterized constructor call. Person y("Sally", 'F', 23); // Display both objects. x.display(); y.display(); // Allocate Person object on heap. Person *p = new Person; Person *q = new Person("Tom", 'M', 31); p -> display(); q -> display(); return EXIT_SUCCESS; } // Output: Unknown U -1 Sally F 23 Unknown U -1 Tom M 31