March 2002
Intermediate to advanced
496 pages
8h 51m
English
| SOLUTION 12.1 | Two possible answers follow.
|
| SOLUTION 12.2 | Your diagram should looking similar to Figure B.16. With this design, any client of any simulated item can simply ask the item for the responsible engineer. As the next challenge shows, the code for the various implementations of getResponsible() gets simpler, too.
Figure B.16. Every SimlulatedItem object can respond to a getResponsible() ... |
Read now
Unlock full access