summaryrefslogtreecommitdiff
path: root/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos
diff options
context:
space:
mode:
Diffstat (limited to 'oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos')
-rw-r--r--oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/Item.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/Item.java b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/Item.java
new file mode 100644
index 0000000..08567c7
--- /dev/null
+++ b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/Item.java
@@ -0,0 +1,34 @@
+package lk.ac.pdn.ceit.pos;
+
+public class Item {
+ private String name;
+ private String id;
+ private double unitPrice;
+
+ public Item(String name, String id, double unitPrice) {
+ this.name = name;
+ this.id = id;
+ this.unitPrice = unitPrice;
+ }
+
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getId() {
+ return id;
+ }
+ public void setId(String id) {
+ this.id = id;
+ }
+ public double getUnitPrice() {
+ return unitPrice;
+ }
+ public void setUnitPrice(double unitPrice) {
+ this.unitPrice = unitPrice;
+ }
+
+
+}