-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContato.java
More file actions
54 lines (40 loc) · 955 Bytes
/
Contato.java
File metadata and controls
54 lines (40 loc) · 955 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package connectionFactory;
import java.util.Calendar;
public class Contato {
private Long id;
private String nome;
private String email;
private String endereco;
private Calendar dataNascimento;
// métodos get e set para id, nome, email, endereço e dataNascimento
public String getNome() {
return this.nome;
}
public void setNome(String novo) {
this.nome = novo;
}
public String getEmail() {
return this.email;
}
public void setEmail(String novo) {
this.email = novo;
}
public String getEndereco() {
return this.endereco;
}
public void setEndereco(String novo) {
this.endereco = novo;
}
public Long getId() {
return this.id;
}
public void setId(Long novo) {
this.id = novo;
}
public Calendar getDataNascimento() {
return this.dataNascimento;
}
public void setDataNascimento(Calendar dataNascimento) {
this.dataNascimento = dataNascimento;
}
}