|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCoin
A coin with a monetary value.
| Constructor Summary | |
Coin(double aValue,
java.lang.String aName)
Constructs a coin. |
|
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
|
java.lang.String |
getName()
Gets the coin name. |
double |
getValue()
Gets the coin value. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Coin(double aValue,
java.lang.String aName)
aValue - the monetary value of the coin.aName - the name of the coin| Method Detail |
public boolean equals(java.lang.Object otherObject)
public java.lang.String getName()
public double getValue()
public int hashCode()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||