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