Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Customer - Contact Header File
- //It isn't magically going to compile due to being a different header file without issue, if you're not on Windows.
- #pragma once
- class Contact {
- private:
- string phone; // Again, you don't do math with phone numbers. Leave this open to accommodate non-US numbers, as well.
- string fax; // About the same thing. Except leave this more open to be able to say no number exists!
- string email; // I don't even see how this could be anything BUT a string.
- public:
- Contact();
- Contact(string phone, string fax, string email);
- //Accessors
- string getphone() { return phone; } // Accessors are one of the few things I'm confident about.
- string getfax() { return fax; }
- string getemail() { return email; }
- //Mutators
- void setphone() { phone = newphone; } // As are mutators,
- void setfax() { fax = newfax; }
- void setemail() { email = newemail; }
- //Others
- void store(string phone, string fax, string email);
- void print(void);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement