From 11d647bd802e014bc941ebda7889fe9978807478 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 15 Mar 2026 15:41:09 +0530 Subject: Added Bill, PointOfSale, LineItem to OOP sample application --- .../src/lk/ac/pdn/ceit/pos/entities/LineItem.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java (limited to 'oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java') diff --git a/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java new file mode 100644 index 0000000..ad6abaf --- /dev/null +++ b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java @@ -0,0 +1,29 @@ +package lk.ac.pdn.ceit.pos.entities; + +public class LineItem { + private Item item; + private int quantity; + + public LineItem(Item item, int quantity) { + this.item = item; + this.quantity = quantity; + } + + public Item getItem() { + return item; + } + + public void setItem(Item item) { + this.item = item; + } + + public int getQuantity() { + return quantity; + } + + public void setQuantity(int quantity) { + this.quantity = quantity; + } + + +} -- cgit v1.2.3