/Users/e1818782/NetBeansProjects/IA Stuff/RecipeDatabase_Nicolas/src/nicolas/Ingredients.java |
1
2
3
4
5
6 package nicolas;
7
8
9
10 @author
11
12 public class Ingredients {
13 String ingName;
14 double quantity;
15 String unit;
16 double ingCost;
17 public Ingredients (String name, double quantity, String unit, double ingCost )
18 {
19 ingName=name;
20 this.quantity=quantity;
21 this.unit=unit;
22 this.ingCost=ingCost;
23 }
24 public Ingredients()
25 {
26
27 }
28 public String getIngName()
29 {
30 return ingName;
31 }
32 public double getQuantity()
33 {
34 return quantity;
35 }
36 public String getUnit()
37 {
38 return unit;
39 }
40 public void setQuantity(double quantity)
41 {
42 this.quantity=quantity;
43 }
44 public void setName(String ingName)
45 {
46 this.ingName=ingName;
47
48 }
49 public void setUnit(String unit)
50 {
51 this.unit=unit;
52 }
53 public void setCost(double ingCost)
54 {
55 this.ingCost=ingCost;
56 }
57 public double getCost()
58 {
59 return ingCost;
60 }
61
62
63 }
64