I'm beginning with UML and i'm trying to create a class diagram for a simple online shopping application. I would like to know if i should create an association beetween the following classes:
- Card: A payment card
- CardVerificator.
The responsability of the CardVerificator class is to check with the payment system if a card is valid or not. This class has one method with the following signature: verifyCard(Card):void (The method raises an exception when the given card is not valid).
(Sorry for my bad english) Thank you.