From 3528a4df53a8ee93a1948bdd41825d8464ef9f78 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 15 Mar 2026 14:49:00 +0530 Subject: Added ItemManager --- .../src/lk/ac/pdn/ceit/pos/entities/Item.java | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/Item.java (limited to 'oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/Item.java') diff --git a/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/Item.java b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/Item.java new file mode 100644 index 0000000..47b8e32 --- /dev/null +++ b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/Item.java @@ -0,0 +1,34 @@ +package lk.ac.pdn.ceit.pos.entities; + +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; + } + + +} -- cgit v1.2.3