Advertisement
SilverhandX

online.h

Feb 15th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #ifndef ONLINE_H
  2. #define ONLINE_H
  3.  
  4. #include <string>
  5. using namespace std;
  6.  
  7. class Online
  8. {
  9. private:
  10.     string lastName,
  11.         firstName,
  12.         email,
  13.         phone;
  14.  
  15. public:
  16.     Online()
  17.     { lastName = "Last";
  18.     firstName = "First";
  19.     email = "[email protected]";
  20.     phone = "123-456-7890"; }
  21.  
  22.     void setFirst(string f)
  23.     { firstName = f; }
  24.  
  25.     void setLast(string l)
  26.     { lastName = l; }
  27.  
  28.     void setEmail(string e)
  29.     { email = e; }
  30.  
  31.     void setPhone(string p)
  32.     { phone = p; }
  33.  
  34.     string getFirst()
  35.     { return firstName; }
  36.  
  37.     string getLast()
  38.     { return lastName; }
  39.  
  40.     string getEmail()
  41.     { return email; }
  42.  
  43.     string getPhone()
  44.     { return phone; }
  45. };
  46. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement