Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Customer class implementation
- //Also known as: I've Been Running Arch Linux On Virtual Machines For A Week And It's Still Very Usable
- #include <iostream>
- using namespace std;
- #include "customer.h"
- //Constructors:
- //Default constructor
- Customer :: Customer() {
- custnum = 0;
- name = "";
- }
- //Settable constructor
- Customer :: Customer(int custnum, string name) {
- custnum = newnum;
- name = newname;
- }
- //Functions
- void Customer :: print(void) {
- cout << "-------- Customer Information --------" << endl;
- cout << "Customer Number:" << custnum << endl;
- cout << "Customer Name: " << name << endl;
- }
- void Customer :: store(int newnum, string newname) {
- custnum = newnum;
- name = newname;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement