-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsuario.java
More file actions
26 lines (23 loc) · 797 Bytes
/
Copy pathUsuario.java
File metadata and controls
26 lines (23 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
public final class Usuario {
private final String nome;
private final String email;
private final String cidade;
private final String telefone;
public Usuario(String nome, String email, String cidade, String telefone) {
this.nome = nome;
this.email = email;
this.cidade = cidade;
this.telefone = telefone;
}
public String getNome() { return nome; }
public String getEmail() { return email; }
public String getCidade() { return cidade; }
public String getTelefone() { return telefone; }
@Override
public String toString() {
return "Nome: " + nome +
" | Email: " + email +
" | Cidade: " + cidade +
" | Telefone: " + telefone;
}
}