BHXSpecter

Learned Something new

Nov 5th, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #ifndef H_THISPERSONTYPE
  2. #define H_THISPERSONTYPE
  3.  
  4. #include <string>
  5. using namespace std;
  6.  
  7. class personType
  8. {
  9.     public:
  10.         void print() const;
  11.         void setName(string first, string last);
  12.         personType& setFirstName(string first);
  13.         personType& setLastName(string last);
  14.         string getFirstName() const;
  15.         string getLastName() const;
  16.         personType(string first = "", string last = "");
  17.        
  18.     private:
  19.         string firstName;
  20.         string lastName;
  21. };
  22.  
  23. #endif
  24.  
Add Comment
Please, Sign In to add comment