Class Card
java.lang.Object
|
+--Card
- public class Card
- extends Object
Stores information for a single card .
- Version:
- January 2004
- Author:
- Tim Corica
Constructor Summary |
Card(CardColor color,
CardShading shading,
CardShape shape,
int number)
Constructor for objects of class Card |
Card
public Card(CardColor color,
CardShading shading,
CardShape shape,
int number)
- Constructor for objects of class Card
getColor
public CardColor getColor()
- Returns:
- the color of this card
getNumber
public int getNumber()
- Returns:
- the number of this card
getShading
public CardShading getShading()
- Returns:
- the number of this card
getShape
public CardShape getShape()
- Returns:
- the number of this card
toString
public String toString()
- Overrides:
toString
in class Object
- Returns:
- A string representation of this card