summaryrefslogtreecommitdiff
path: root/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/TextUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/TextUI.java')
-rw-r--r--oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/TextUI.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/TextUI.java b/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/TextUI.java
deleted file mode 100644
index 056e41e..0000000
--- a/oop/10-point-of-sale/src/lk/ac/pdn/ceit/pos/TextUI.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package lk.ac.pdn.ceit.pos;
-
-import lk.ac.pdn.ceit.pos.entities.Bill;
-
-public class TextUI {
- private PointOfSale pos;
-
- public TextUI(PointOfSale pos) {
- this.pos = pos;
- }
-
- public void start() {
- IO.println("POS Started.");
-
- // Assume a bill should be created.
- Bill bill = pos.createNewBill();
-
- // Assume: Create a line item
- pos.addLineItem("F001", 2);
-
- pos.addLineItem("F002", 3);
-
- // ...
-
- // Print bill
- }
-}