Solid Principles, Python.
register printer for this. Lets create a class for it. A module printers.py is created and has a class CashRegisterPrinter. How do we use the class? The reporting module needs to import from the printers module. Then it instantiates a new CashRegisterPrinter. This code will work, but we have