#include #include using namespace std; // this is not normal class PersonT { public: PersonT() { cout << " in the constructor" << endl; name = "No Name"; age = 0; } PersonT(string n, int a) { cout << "In the second constructor" << endl; name =n; if (a >=0) { age = a; } else { age = 0; } } string GetName() { return name; } void SetName(string n) { name = n; } int GetAge() { return age; } void SetAge( int a) { if (a >= 0) { age = a; } } private: string name; int age; }; int main() { cout << "Before declaring thePerson " << endl; PersonT thePerson; cout << "After declaring thePerson " << endl; PersonT secondPerson("Bob", 7); cout << "After declaring secondPerson" << endl; cout << "The person's name is " << thePerson.GetName() << endl; thePerson.SetName("Cher"); cout << "The second person is " << secondPerson.GetName() << " who is " << secondPerson.GetAge() << endl; return 0; }