Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Contact class implementation
- //Also known as: I've Been Running Arch Linux On Virtual Machines For A Week And It's Still Very Usable - Part III - The Finale (GNOME Works Fine Too And I'm Shocked)
- #include <iostream>
- using namespace std;
- #include "customer.h"
- //Constructors:
- //Default constructor
- Contact :: Contact() {
- phone = "";
- fax = "";
- email = "";
- }
- //Settable constructor
- Contact :: Contact(string phone, string fax, string email) {
- street = newstreet;
- city = newcity;
- state = newstate;
- zip = newzip;
- }
- //Functions
- void Contact :: print(void) {
- cout << "-------- Contact Information --------" << endl;
- cout << "Phone: " << phone << endl;
- cout << "Fax: " << fax << endl;
- cout << "Email: " << email << endl;
- }
- void Contact :: store(string newphone, string newfax, string newemail) {
- phone = newphone;
- fax = newfax;
- email = newemail;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement