-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.java
67 lines (55 loc) · 1.35 KB
/
Customer.java
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Write a description of class Customer here.
*
* @author (Irwin Frimpong)
* @version (10/12/18)
*/
public class Customer
{
// instance variables - replace the example below with your own
private int arr_time; // Holds the time in which the customer arrives
private int wait_time=0; // Holds the wait time of each customer
private int depart_time; // Holds the departure time of each customer
private int name ;
/**
* Constructor for objects of class Customer
*/
public Customer( int arr_time, int name )
{
this.arr_time = arr_time ;
this.name = name;
}
// Getter and getters in customer class
/**
* setDeparture method sets thhe departure time for each customer
*
* @param int d_time
*
*/
public void setDepartTime(int d_time)
{
// Setting the departure time
depart_time = d_time;
}
/**
* setWaittime method sets thhe wait time for each customer
*
* @param int w_time
*
*/
public void setWaitTime(int w_time)
{
// Setting the waitime
wait_time = w_time;
}
/**
* getWaittime method gets the wait time for each customer
*
* @return int wait_time
*
*/
public int getWaitTime()
{
return wait_time;
}
}