-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathItem.java
More file actions
47 lines (46 loc) · 888 Bytes
/
Item.java
File metadata and controls
47 lines (46 loc) · 888 Bytes
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
package org.millardps.InventoryManagement;
import java.util.*;
public abstract class Item {
int quantity;
String name;
String category;
String description;
double price;
public Item(int q, String cat, String n, double p, String des ){
quantity = q;
category = cat;
name = n;
price = p;
description = des;
}
public int getQuantity(){
return quantity;
}
public String getName(){
return name;
}
public String getCategory(){
return category;
}
public String getDescription(){
return description;
}
public double getPrice(){
return price;
}
public void setQuantity(int q){
quantity = q;
}
public void setName(String n){
name = n;
}
public void setCategory(String c){
category = c;
}
public void setDescription(String d){
description = d;
}
public void setPrice(double p){
price = p;
}
}