×We're Accepting Applications for our Women's Scholarship Through March 31st! Apply Now.
Answer the following questions.
method resolution orderor
Create a deck of cards class. Internally, the deck of cards should use another class, a card class. Your requirements are:
Deckclass should have a
dealmethod to deal a single card from the deck
shufflemethod which makes sure the deck of cards has all 52 cards and then rearranges them randomly.
Cardclass should have a suit (Hearts, Diamonds, Clubs, Spades) and a value (A,2,3,4,5,6,7,8,9,10,J,Q,K)
For solutions to these exercises, click here.
When you're ready, move on to File I/O Introduction