1 Write the use case for returning a book to the library, as discussed in this section.
2 Modify the class diagram shown in Figure 12.8 to include the Library class. You should assume that that a library contains zero or more books and patrons.
3 Explain the difference between aggregation and composition; use an example.
4. A blackjack game uses a deck of cards. As cards are dealt from the deck, it gradually becomes empty. Draw a class diagram that shows the relationships among the classes Card, Deck, and BlackjackGame. Be sure to show any multiplicities in the relationships.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here