I have this cool model, where the Bank is the class that is now being assembled for a computerized banking network. This should be an ATM (automatic ATM), as well as a cashier.
I used Generalization and took a class called AccountHandlers , which inherits the Bank class. This AccountHandlers also has aggregated ATM and HumanCashier .
Now the fact is that my friend claimed that I took everything wrong. According to him, AccountHandlers should be aggregated in the Bank and that ATM and HumanCashier should inherit AccountHandlers .
I am a bit confused. How can I model it! or are both methods correct?
source share