/// <summary> /// Paramaterized Constructor - Creates a deck from the given collection /// </summary> /// <param name="newCards">The collection to use</param> public Deck(CardCollection newCards) { cards = newCards; }
/// <summary> /// Creates a new Card out of Range exception /// </summary> /// <param name="sourceDeckContents">The source deck that raised the exception</param> public CardOutOfRangeException(CardCollection sourceDeckContents) : base("There are only 52 cards in the deck.") { deckContents = sourceDeckContents; }