-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWineLockerClass.java
More file actions
78 lines (52 loc) · 1.51 KB
/
WineLockerClass.java
File metadata and controls
78 lines (52 loc) · 1.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/***************************************************************
* Name : Program Name
* Author: Larry Paucar
* Created : Apr 20, 2023
* Course: CIS 152 - Data Structure
* Version: 1.0
* OS: Windows XX
* IDE: eclipse
* Copyright : This is my own original work
* based on specifications issued by our instructor
* Description : This class will contain the information
* for wine lockers such as the capacity and
* info on whether they are available or not.
* Academic Honesty: I attest that this is my original work.
* I have not used unauthorized source code, either modified or
* unmodified. I have not given other fellow student(s) access
* to my program.
***************************************************************
*/
public class WineLockerClass {
private int number;
private int capacity;
private boolean available;
public WineLockerClass(int number, int capacity) {
super();
this.number = number;
this.capacity = capacity;
this.available = true;
}
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
public int getCapacity() {
return capacity;
}
public void setCapacity(int capacity) {
this.capacity = capacity;
}
public boolean isAvailable() {
return available;
}
public void setAvailable(boolean available) {
this.available = available;
}
@Override
public String toString() {
return "WineLockerClass [number=" + number + ", capacity=" + capacity + ", available=" + available + "]";
}
}