-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathItem.java
More file actions
69 lines (52 loc) · 1.43 KB
/
Item.java
File metadata and controls
69 lines (52 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
64
65
66
67
68
69
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author HP
*/
class Item {
int Item_ID;
String Item_Name;
float Item_Price;
int Item_Qty,Supplier_ID;
public Item(int Item_ID, String Item_Name, float Item_Price, int Item_Qty, int Supplier_ID) {
this.Item_ID = Item_ID;
this.Item_Name = Item_Name;
this.Item_Price = Item_Price;
this.Item_Qty = Item_Qty;
this.Supplier_ID = Supplier_ID;
}
public int getItem_ID() {
return Item_ID;
}
public int getItem_Qty() {
return Item_Qty;
}
public int getSupplier_ID() {
return Supplier_ID;
}
public String getItem_Name() {
return Item_Name;
}
public float getItem_Price() {
return Item_Price;
}
public void setItem_ID(int Item_ID) {
this.Item_ID = Item_ID;
}
public void setItem_Qty(int Item_Qty) {
this.Item_Qty = Item_Qty;
}
public void setSupplier_ID(int Supplier_ID) {
this.Supplier_ID = Supplier_ID;
}
public void setItem_Name(String Item_Name) {
this.Item_Name = Item_Name;
}
public void setItem_Price(float Item_Price) {
this.Item_Price = Item_Price;
}
}