Practice drawing UML diagrams of C++ code.
Process
Download and test the count.cpp program
[ count.cpp ]
Add comments to count.cpp
Draw a diagram of the classes in count.cpp
Draw a diagram of enum suit on page 243
To do this start with a normal class with the name "suit"
Add the stereotype "enumeration" to the first tab. Add the values as
attributes of the class in a later tab -- all public.
Add a diagram of the class Card from page 243 to your model
Add a link from Card to suit.
Add a diagram of class Cardstack from page 244 to the model
And connect it to Card!
Add a diagram of Player on page 247
And connect to Cardstack as a composition (hand) and as
an aggregation (pack).
. . . . . . . . . ( end of section Process) <<Contents | End>>
Deliverable
Show the lab teachers your diagrams and updated 'count.cpp'
program to earn credit.
Deadline
I will be assigning grades at the end of the lab
depending on how many of the deliverables are complete
and correct.
If you have time ... try the rest of the figures in chapter 6.