Source of Person.h


  1: //Person.h

  2: 
  3: class Person
  4: {
  5: public:
  6:     void setName
  7:         (
  8:         const string& theName //

  9:         );
 10:     void setAge
 11:         (
 12:         int theAge //

 13:         );
 14:     string getName() const;
 15:     int getAge();
 16:     void show();
 17: 
 18: private:
 19:     string name;
 20:     int age;
 21: };