Tributavelpublic class ContaCorrente extends Conta implements Tributavel
| Constructor | Description |
|---|---|
ContaCorrente(int agencia,
int numero) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
deposita(double valor) |
|
double |
getValorImposto() |
|
void |
saca(double valor) |
Valor precisa ser maior do que o saldo.
|
getAgencia, getNumero, getSaldo, getTitular, getTotal, setAgencia, setNumero, setTitular, transferepublic void saca(double valor)
throws SaldoInsuficienteException
Contasaca in class ContaSaldoInsuficienteExceptionpublic double getValorImposto()
getValorImposto in interface Tributavel