Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class Cliente {
  2.  
  3. private String nome;
  4. private Conta tipoDeConta;
  5.  
  6. public Cliente(String nome, Conta tipoDeConta) {
  7. this.nome = nome;
  8. this.tipoDeConta = tipoDeConta;
  9. }
  10.  
  11. public String getNome() {
  12. return nome;
  13. }
  14.  
  15. public Conta getTipoDeConta() {
  16. return tipoDeConta;
  17. }
  18.  
  19. public String toString() {
  20. return this.getNome() + " , tipo de conta: " + this.getTipoDeConta().toString();
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement