Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ONLINE_H
- #define ONLINE_H
- #include <string>
- using namespace std;
- class Online
- {
- private:
- string lastName,
- firstName,
- email,
- phone;
- public:
- Online()
- { lastName = "Last";
- firstName = "First";
- phone = "123-456-7890"; }
- void setFirst(string f)
- { firstName = f; }
- void setLast(string l)
- { lastName = l; }
- void setEmail(string e)
- { email = e; }
- void setPhone(string p)
- { phone = p; }
- string getFirst()
- { return firstName; }
- string getLast()
- { return lastName; }
- string getEmail()
- { return email; }
- string getPhone()
- { return phone; }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement