-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.h
27 lines (24 loc) · 863 Bytes
/
customer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Customer {
private:
int _id;
int _sleepDuration;
int _payFromMachineID;
std::string _payToCompany;
int _payAmount;
customerStatus status;
public:
Customer(int id, int sleepDuration, int payFromMachineID, std::string payToCompany, int payAmount);
void toConsole();
};
/*Customer Constructor*/
Customer::Customer(int id, int sleepDuration, int payFromMachineID, std::string payToCompany, int payAmount){
_id = id;
_sleepDuration = sleepDuration;
_payFromMachineID = payFromMachineID;
_payToCompany = payToCompany;
_payAmount = payAmount;
status = created;
}
void Customer::toConsole(){
std::cout << "Customer " << _id << ": [" << _sleepDuration << ","<< _payFromMachineID << ","<< _payToCompany << ","<< _payAmount << ","<< status << "]"<< std::endl;
}