|
12.3. Using CRC CardsSo, we need two classes. But what goes into those classes? How do we go about putting the substance into this simplistic framework? In their now (semi)famous paper presented at the object-oriented programming conference OOPSLA in 1989, Kent Beck and Ward Cunningham introduced a simple, practical design tool for object-oriented design based on a simple, practical 3x5 file card. The CRC cards for our classes are shown in Figures 12.1 and 12.2. Figure 12.1. Account CRC card
Figure 12.2. User CRC card
But we are getting a bit ahead of ourselves. These CRC cards are an end product of analysis. They are the starting point for coding. Let's talk a little bit about what is on these cards and how we came to that content. |
|