All Packages Class Hierarchy This Package Previous Next Index
Class atm.physical.ReceiptPrinter
java.lang.Object
|
+----atm.physical.ReceiptPrinter
- public class ReceiptPrinter
- extends Object
Manager for the ATM's receipt printer. In a real ATM, this would
manage a physical device; in this simulation, it uses classes
in package simulation to simulate the device.
-
ReceiptPrinter()
- Constructor
-
printReceipt(Receipt)
- Print a receipt
ReceiptPrinter
public ReceiptPrinter()
- Constructor
printReceipt
public void printReceipt(Receipt receipt)
- Print a receipt
- Parameters:
- receipt - object containing the information to be printed
All Packages Class Hierarchy This Package Previous Next Index