×
Answer the following questions.
method resolution order
or MRO
?Create a deck of cards class. Internally, the deck of cards should use another class, a card class. Your requirements are:
Deck
class should have a deal
method to deal a single card from the deckshuffle
method which makes sure the deck of cards has all 52 cards and then rearranges them randomly.Card
class 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