-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pessoa
44 lines (36 loc) · 1.02 KB
/
Pessoa
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
/*
Cria uma Classe Pessoa, contendo os atributos encapsulados,
com seus respectivos seletores (getters) e modificadores (setters),
e ainda o construtor padrão e pelo menos mais duas opções de construtores
conforme sua percepção. Atributos: String nome; String endereço; String telefone;
*/
public class Pessoa {
private String nome;
private String endereco;
private int telefone;
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 int getTelefone() {
return telefone;
}
public void setTelefone(int telefone) {
this.telefone = telefone;
}
public Pessoa(String _nome, String _endereco, int _telefone) {
this.nome = _nome;
this.endereco = _endereco;
this.telefone = _telefone;
}
public Pessoa(){
}
}