Unformatted text preview: The class Deck is a specialized (generalization) version of CardCollection . An object of deck can be shuffled. Users can also deal a card from the deck. The class Hand is also a specialized (generalization) version of CardCollection . Since Card is a kind of Comparable things, an object of hand can be sorted....
View Full Document
- Spring '10
- Object-Oriented Programming, UML Class Diagrams, abstract method compareTo, class Card implements