diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-03-15 12:33:42 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-03-15 12:33:42 +0530 |
| commit | 06eddd8605e965efc3658cb6c4748c29c491712f (patch) | |
| tree | ad93ca9ac0345e1c9be19de6773e2150336823c5 /oop/10-point-of-sale/src/lk/ac/pdn | |
| parent | 6fa0a63b3a594afb02f2bd52b4ea883a75cac0d0 (diff) | |
OOA/OOD/OOP example of Point of Sale system
Diffstat (limited to 'oop/10-point-of-sale/src/lk/ac/pdn')
| -rw-r--r-- | oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/Item.java | 34 |
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; + } + + +} |
