We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b83b6a commit 17cba68Copy full SHA for 17cba68
1 file changed
Item.java
@@ -0,0 +1,29 @@
1
+public class Item {
2
+ private Food food;
3
+ private int count;
4
+ private String description;
5
+
6
+ public Item(Food food, int count, String description) {
7
+ this.food = food;
8
+ this.count = count;
9
+ this.description = description;
10
+ }
11
12
+ public Item(Food food, int count) {
13
14
15
+ this.description = "";
16
17
18
+ public Food getFood() {
19
+ return food;
20
21
22
+ public int getCount() {
23
+ return count;
24
25
26
+ public String getDescription() {
27
+ return description;
28
29
+}
0 commit comments