|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--p1.aplic.banco.Moeda
|
+--p1.aplic.banco.Real
A moeda Real (Brasil). O importante aqui é o método toString que sabe o símbolo da moeda (R$).
| Constructor Summary | |
Real()
Controi um valor 0.0 em moeda Real |
|
Real(double valor)
Controi um valor em moeda Real. |
|
| Method Summary | |
java.lang.String |
toString()
Representa o valor da moeda como string |
| Methods inherited from class p1.aplic.banco.Moeda |
compareTo, equals, getValor, setValor |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Real()
public Real(double valor)
valor - O valor em reais.| Method Detail |
public java.lang.String toString()
toString in class Moeda
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||