|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectCard
public class Card
Represents a playing card. Bugs: none known
| Field Summary | |
|---|---|
static int |
CLUBS
|
static int |
DIAMONDS
|
static int |
HEARTS
|
static int |
SPADES
|
| Constructor Summary | |
|---|---|
Card(int face,
int suit)
Constructs a Card object with the given face value and suit value. |
|
| Method Summary | |
|---|---|
int |
getFace()
Returns the face value of the card. |
int |
getSuit()
Returns the suit of the card. |
java.lang.String |
toString()
Returns a String representation of a Card object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HEARTS
public static final int DIAMONDS
public static final int CLUBS
public static final int SPADES
| Constructor Detail |
|---|
public Card(int face,
int suit)
face - the face value of the cardsuit - the suit of the card| Method Detail |
|---|
public int getFace()
public int getSuit()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||