// demostatic.cpp // // Copyright 2010 doug #include #include using namespace std; #include "demostatic.h" int main(int argc, char** argv) { DemoStatic father("Floyd", 42); DemoStatic mother("Mary", 39); DemoStatic daughter("Emily", 12); DemoStatic son("Weston", 9); father.setLastName("Smith"); mother.setZipCode(80634); cout << "Father's name, age, zip: " << father.getNames() << ", " << father.getAge() << ", " << father.getZipCode() << endl; cout << "Mother's name, age zip: " << mother.getNames() << ", " << mother.getAge() << ", " << mother.getZipCode() << endl; cout << "Daughter's name, age, zip: " << daughter.getNames() << ", " << daughter.getAge() << ", " << daughter.getZipCode() << endl; cout << "Son's name, age, zip: " << son.getNames() << ", " << son.getAge() << ", " << son.getZipCode() << endl << endl; daughter.setLastName("Jones"); son.setZipCode(80632); cout << "Father's name, age, zip: " << father.getNames() << ", " << father.getAge() << ", " << father.getZipCode() << endl; cout << "Mother's name, age zip: " << mother.getNames() << ", " << mother.getAge() << ", " << mother.getZipCode() << endl; cout << "Daughter's name, age, zip: " << daughter.getNames() << ", " << daughter.getAge() << ", " << daughter.getZipCode() << endl; cout << "Son's name, age, zip: " << son.getNames() << ", " << son.getAge() << ", " << son.getZipCode() << endl; return 0; }