/**
 * A class that represents a playing card.
 * @author Derek Bridge 666 d.bridge@cs.ucc.ie
 */
public class Card
{
/* =======================================================================
       CONSTRUCTORS
   =======================================================================
*/
    /**
     * Allocates a new card.
     * @param theDenomination the card's denomination (as a string).
     * @param theSuit the card's suit.
     * @param theValue the card's value in our game of Blackjack.
     */
    public Card(String theDenomination, String theSuit, int theValue)
    {   denomination = theDenomination;
        suit = theSuit;
        value = theValue;
    }

/* =======================================================================
       PUBLIC INTERFACE
   =======================================================================
*/
/* --Getters----------------------------------------------------------- */

    /**
     * Returns a string representing this card.
     * @return a string representation of this card.
     */
    public String toString()
    {   return denomination + " of " + suit;
    }

    /**
     * Returns this card's value.
     * @return this card's value.
     */
    public int getValue()
    {   return value;
    }

/* =======================================================================
       INSTANCE VARIABLES & CLASS VARIABLES
   =======================================================================
*/
    /**
     * The card's denomination.
     */
    private String denomination;

    /**
     * The card's suit.
     */
    private String suit;

    /** 
     * The card's value.
     */
    private int value;
}
