/** * A playing card interface * @author kim * @version Feb 9, 2004 */ public interface CardInterface{ // "final" is what makes them constants // "static" shares one copy of the value over all objects in class // "public" means other classes can use them // enum constants public enum Suit {CLUBS, DIAMONDS, HEARTS, SPADES} public enum Rank { TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE} /** * @return suit of the card */ Suit getSuit(); /** * @return rank of the card */ Rank getRank(); }