// File: main2.C // // Testing the Person class #include #include #include "person.h" int main() { Person X("John Smith", 30) ; Student S("Joe Blow", 19, 2, 3.79) ; Faculty F("Dr. Foo", 45, 17) ; X.id() ; S.id() ; F.id() ; cout << endl ; Person *ptr ; ptr = &X ; ptr->id() ; ptr = &S ; ptr->id() ; ptr = &F ; ptr->id() ; }