Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Cliente {
- private String nome;
- private Conta tipoDeConta;
- public Cliente(String nome, Conta tipoDeConta) {
- this.nome = nome;
- this.tipoDeConta = tipoDeConta;
- }
- public String getNome() {
- return nome;
- }
- public Conta getTipoDeConta() {
- return tipoDeConta;
- }
- public String toString() {
- return this.getNome() + " , tipo de conta: " + this.getTipoDeConta().toString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement