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 } }