forked from jdesimone230/CMS270-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPickup.java
More file actions
57 lines (39 loc) · 1.38 KB
/
Pickup.java
File metadata and controls
57 lines (39 loc) · 1.38 KB
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
public class Pickup extends Ship{
//----------------------------Data Members----------------------------
private String directCustomer;
private boolean ready;
//----------------------------Constructors----------------------------
public Pickup() {
super();
}
public Pickup(String dirCust, boolean rdy) {
super();
this.directCustomer = dirCust;
this.ready = rdy;
}
public Pickup(String cust, int ordDate, Shoe[] crt, double ttl, int expShipDate, boolean cnl, String shipComp, String add, String trackNum, double shipCost, String dirCust, boolean rdy) {
super(cust, ordDate, crt, ttl, expShipDate, cnl, shipComp, add, trackNum, shipCost);
this.directCustomer = dirCust;
this.ready = rdy;
}
//----------------------------Getters----------------------------
public String getDirectCustomer() {
return directCustomer;
}
public boolean isReady() {
return ready;
}
//-----------------------------Setters--------------------------
public void setDirectCustomer(String directCustomer) {
this.directCustomer = directCustomer;
}
public void setReady(boolean ready) {
this.ready = ready;
}
//----------------------------Behaviors-------------------------
public String toString() {
return super.toString() +
"\nDirect Customer: " + directCustomer +
"\nReady: " + ready;
}
}