When a class has been designed in such a way that it requires assistance from other classes to fulfil a responsibility, the 'helping' classes are known as collaborators. CRC (class-responsibility-collaboration) cards are a practical and effective way of identifying these relationships between classes.
In my interpretation of the IT Computers cases study, only the Order class has collaborations with other classes, so I include here only one CRC card:

I will also create CRC cards for the Green Street Car Park case study, which appears to have more collaborations between classes!
No comments:
Post a Comment