-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFoodDomain.java
More file actions
63 lines (51 loc) · 1.43 KB
/
Copy pathFoodDomain.java
File metadata and controls
63 lines (51 loc) · 1.43 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
package com.example.foodiemenu;
public class FoodDomain {
private String title;
private String pic;
private String description;
private double cost;
private int numberInCart;
public FoodDomain(String title, String pic, String description, Double cost){
this.title = title;
this.pic = pic;
this.description = description;
this.cost = cost;
}
public FoodDomain(String title, String pic, String description, Double cost, int numberInCart){
this.title = title;
this.pic = pic;
this.description = description;
this.cost = cost;
this.numberInCart = numberInCart;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getPic() {
return pic;
}
public void setPic(String pic) {
this.pic = pic;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public double getCost() {
return cost;
}
public void setCost(double cost) {
this.cost = cost;
}
public int getNumberInCart() {
return numberInCart;
}
public void setNumberInCart(int numberInCart) {
this.numberInCart = numberInCart;
}
}