Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.00 KB | None | 0 0
  1. //Contact class implementation
  2. //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)
  3.  
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. #include "customer.h"
  9.  
  10. //Constructors:
  11. //Default constructor
  12. Contact :: Contact() {
  13.          phone = "";
  14.          fax = "";
  15.          email = "";
  16.          }
  17.          
  18. //Settable constructor
  19. Contact :: Contact(string phone, string fax, string email) {
  20.          street = newstreet;
  21.          city = newcity;
  22.          state = newstate;
  23.          zip = newzip;
  24.          }
  25.          
  26. //Functions
  27.  
  28. void Contact :: print(void) {
  29.      cout << "-------- Contact Information --------" << endl;
  30.      cout << "Phone: " << phone << endl;
  31.      cout << "Fax: " << fax << endl;
  32.      cout << "Email: " << email << endl;
  33. }
  34.  
  35. void Contact :: store(string newphone, string newfax, string newemail) {
  36.      phone = newphone;
  37.      fax = newfax;
  38.      email = newemail;
  39.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement