-
Notifications
You must be signed in to change notification settings - Fork 687
Expand file tree
/
Copy pathMenuItem.java
More file actions
57 lines (44 loc) · 1.14 KB
/
MenuItem.java
File metadata and controls
57 lines (44 loc) · 1.14 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
package org.launchcode;
public class MItems {
private String itemName;
private double price;
private String description;
private String category;
private boolean isItNew;
public MItems(String itemName, double price, String category, boolean isItNew) {
this.itemName = itemName;
this.price = price;
this.category = category;
this.isItNew = isItNew;
}
public String getItemName() {
return itemName;
}
public double getPrice() {
return price;
}
public String getDescription() {
return description;
}
public String getCategory() {
return category;
}
public boolean isItNew() {
return isItNew;
}
public void setItemName(String itemName) {
this.itemName = itemName;
}
public void setPrice(double price) {
this.price = price;
}
public void setDescription(String description) {
this.description = description;
}
public void setCategory(String category) {
this.category = category;
}
public void setItNew(boolean itNew) {
isItNew = itNew;
}
}