Computer Science 121 - Lab 4a: CRC

In this lab you'll use your domain diagram and CRC cards in order to create a first draft of your class diagram.

  • Use one 3x5 card for each class in your domain diagram. Write the name of the class on the card.
  • Next, for each card, write a one-sentence description of the class's main "responsibility." If a class has multiple responsibilities, consider breaking it down into smaller classes, each with a single responsibility. (Create new cards for the new classes.)
  • On the left side of each card, write a list of the things the class must know or do in order to carry out its responsibility.
  • A class is likely to "collaborate" with other classes in order to fulfill its responsibilities. List these collaborators on the right side of the card.
  • Walk through each use case describing how it is realized through the collaboration of your classes. If there are gaps, create new classes to take on the identified responsibilities.

    Photograph each of your CRC cards and upload the images to your trac.