public abstract class ColoredCard extends java.lang.Object implements Card
| Modifier and Type | Class and Description |
|---|---|
static class |
ColoredCard.Color
Enum listing possible colors.
|
| Constructor and Description |
|---|
ColoredCard(ColoredCard.Color color)
Constructor for
ColoredCard. |
| Modifier and Type | Method and Description |
|---|---|
ColoredCard.Color |
getColor()
Accessor for color of the card.
|
java.lang.String |
toString() |
public ColoredCard(ColoredCard.Color color)
ColoredCard.color - color of the cardpublic ColoredCard.Color getColor()
public java.lang.String toString()
toString in class java.lang.Object