-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPessoa.java
51 lines (38 loc) · 981 Bytes
/
Pessoa.java
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
import java.util.Date;
// Uma classe abstrata na qual não pode se dá new.
public abstract class Pessoa {
private String nome;
private String endereco;
private String telefone;
private Date datadenascimento;
public Pessoa(String nome, String endereco, String telefone, Date datadenascimento) {
this.nome = nome;
this.endereco = endereco;
this.telefone = telefone;
this.datadenascimento = datadenascimento;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getEndereco() {
return endereco;
}
public void setEndereco(String endereco) {
this.endereco = endereco;
}
public String getTelefone() {
return telefone;
}
public void setTelefone(String telefone) {
this.telefone = telefone;
}
public Date getDatadenascimento() {
return datadenascimento;
}
public void setDatadenascimento(Date datadenascimento) {
this.datadenascimento = datadenascimento;
}
}