Question: Ask me anything Java Programming: Create a class for a single playing card. a ere is the UML. Card Private data members are ur design

Ask me anything Java Programming: Create a class for a single playing card. a ere is the UML. Card Private data members are ur design +Card(rank:int, suit:TBD) +getSuit0: int (or char) +getRank0: int tsetCard (rank:int, suit(TBDO avoid tsetRandom0:void +compare (c Card): int +compare (cl:Card, c2:Card) int ttoString0: String Features Data members can be ofyour design. The public member methods should act like the rank and suit of a real card, but how you keep track is your choice. The other members are as you would expect, with the following: setRandom will set the card's value to a random rank and suit toString0 will return a string with the card represented any way that is reasonable-rank, suit) Create a driver program that will thoroughly test your card class. Then, use your card class to create a deck class. The constructor should initialize the deck (52 cards to all the cards in a deck. Here is a possible start for the UML Deck Deck Card +Decko +deal0: Card tnumLefto:int +shuffle 0: void +toString0 The constructor should create the anray of 52 unique cards. The other methods act as you would expect You may deviate from the UML as you see fit, as long as the public members behave as expected Write a driver program that thoroughly tests your deck class. Sc19 PM 3/4/2017 R2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
