posted 12 years ago
Thanks for the replies everyone!
Sorry, I should have been more specific.
I know that line 1 for sure creates the deck object with quantity NUMBER_OF_CARDS.
On line 5, I moved my cursor on 'Card' and it was referring to my Card class. But, I am not sure why you would need to use 'new' or have to access the Card class.
What exactly is line 5 stating?
As Fred Rosenberger said, it seems that the for loop is creating, or giving values, to each elements in the deck array (0-51). However, how can you have two columns (face and suit) when the deck object is first initialized with NUMBER_OF_CARDS, which is a final value of 52? Wouldn't you have to have two different arrays for faces and suits?