February 2014
Beginner
1248 pages
62h 25m
English
Class DeckOfCards (Fig. 7.10) declares as an instance variable a Card array named deck (line 7). An array of a reference type is declared like any other array. Class DeckOfCards also declares an integer instance variable currentCard (line 8) representing the sequence number (0–51) of the next Card to be dealt from the deck array, and a named constant NUMBER_OF_CARDS (line 9) indicating the number of Cards in the deck (52).
Read now
Unlock full access