I have my main class PayUnit where I create my main object references, such as touchScreen, scale, and barcodeReader as these are has-a
relationships to my PayUnit. This machine also has-a
billDispenser but billDispenser is really 'is-a' relationship to currencyDispener. Do I still create a billDispenser and currencyDispenser object references in the main class, or do create a currencyDispenser reference in PayUnit and then create a billDispenser in the currencyDispenser class?
I hope that makes sense. What is the standard for OOP in this regard?
Thanks for the help.