Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
202 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,39 @@ | ||
public class Banco { | ||
|
||
|
||
|
||
|
||
|
||
|
||
public static void main(String[] args) { | ||
|
||
Correntista correntista = new Correntista(); | ||
Correntista cicrano = new Correntista("Cicrano", 231232); | ||
|
||
System.out.println(correntista.getNome()); | ||
System.out.println(correntista.getLimiteChequeEspecial()); | ||
System.out.println(cicrano.getNome()); | ||
System.out.println(cicrano.getLimiteChequeEspecial()); | ||
|
||
PessoaFisica fulano = new PessoaFisica(); | ||
PessoaFisica fulano = new PessoaFisica("Beltrana", 432212); | ||
|
||
System.out.println(fulano.getNome()); | ||
System.out.println(fulano.getLimiteChequeEspecial()); | ||
|
||
|
||
ContaCorrente contaDoCicrano = new ContaCorrente(111, cicrano); | ||
|
||
|
||
Gerente meuGerente = new Gerente("João", 12345678, 1111); | ||
meuGerente.setEndereco("Novo endereço, numero tal"); | ||
|
||
System.out.println(meuGerente.getNome()); | ||
System.out.println(meuGerente.getDataDeAdmissao()); | ||
|
||
|
||
|
||
|
||
GerenteGeral gerentona = new GerenteGeral("Mariza Silva", 12333, 1); | ||
|
||
// gerentona.gerenciarConta(contaDoCicrano); | ||
gerentona.encerrarConta(contaDoCicrano); | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
public class GerenteGeral extends Gerente { | ||
|
||
public GerenteGeral(String nome, long cpf, int matricula) { | ||
super(nome, cpf, matricula); | ||
} | ||
|
||
/** | ||
* Encaminha email ao correntista informado, | ||
* oferecendo empréstimo no valor igual a 10x o limite do cheque especial. | ||
* | ||
* @param correntista O correntista alvo | ||
*/ | ||
public void oferecerEmprestimo(Correntista correntista) { | ||
|
||
} | ||
|
||
@Override | ||
public void encerrarConta(ContaCorrente conta) { | ||
gerenciarConta(conta); | ||
super.encerrarConta(conta); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters