diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-03-15 15:41:09 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-03-15 15:41:09 +0530 |
| commit | 11d647bd802e014bc941ebda7889fe9978807478 (patch) | |
| tree | 6a23c7227449f3cd598b871b8e9950f94593ae1f /oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java | |
| parent | 3528a4df53a8ee93a1948bdd41825d8464ef9f78 (diff) | |
Added Bill, PointOfSale, LineItem to OOP sample application
Diffstat (limited to 'oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java')
| -rw-r--r-- | oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/entities/LineItem.java | 29 |
1 files changed, 29 insertions, 0 deletions
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; + } + + +} |
