Respuesta :

If we search the definition of a card game for verbs, we find that we can deal a card from a deck and shuffle a deck.

This provides us with two potential instance method choices for the Deck class: shuffle() and dealCard (). Hands can be modified by adding and removing cards. This provides the addCard() and removeCard instance method candidates for the Hand class (). Although cards are largely inert objects, we still need to be able to identify their suits and values. As we progress, we'll find more instance methods.

    /**

     * Constructor.  Create an unshuffled deck of cards.

     */

    public Deck()

    /**

     * Put all the used cards back into the deck,

     * and shuffle it into a random order.

     */

    public void shuffle()

    /**

     * As cards are dealt from the deck, the number of

     * cards left decreases.  This function returns the

     * number of cards that are still left in the deck.

     */

    public int cardsLeft()

 /**

     * Deals one card from the deck and returns it.

     * throws IllegalStateException if no more cards are left.

     */

    public Card dealCard()

Learn more about function here-

https://brainly.com/question/28939774

#SPJ4