-
Notifications
You must be signed in to change notification settings - Fork 0
/
Stock.java
51 lines (50 loc) · 1.19 KB
/
Stock.java
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
package Pharamacy_Management_System;
public class Stock {
private int id;
private String name;
private String type;
private String company;
private int qty;
private float price;
private String mfgdate;
private String expdate;
private int weight;
Stock(int id,String name,String type,String company,int qty,float price,String mfgdate,String expdate,int weight){
this.id=id;
this.name=name;
this.type=type;
this.company=company;
this.qty=qty;
this.price=price;
this.mfgdate=mfgdate;
this.expdate=expdate;
this.weight=weight;
}
public int getId(){
return id;
}
public String getName(){
return name;
}
public String getType(){
return type;
}
public String getCompany(){
return company;
}
public int getQty(){
return qty;
}
public float getMedicinePricePerUnit(){
return price;
}
public String getMfgDate(){
return mfgdate;
}
public String getExpDate(){
return expdate;
}
public int getWeight(){
return weight;
}
}