-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuncionario.java
More file actions
91 lines (73 loc) · 2.08 KB
/
Funcionario.java
File metadata and controls
91 lines (73 loc) · 2.08 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package exercise02;
public abstract class Funcionario implements SalarioFinal {
protected String nome;
protected String cpf;
protected String rg;
protected Sexo sexo;
protected double salarioBase;
protected String dataNascimento;
protected String dataAdmissao;
public Funcionario(String nome, String cpf, String rg, Sexo sexo, double salarioBase, String dataNascimento, String dataAdmissao) {
this.nome = nome;
this.cpf = cpf;
this.rg = rg;
this.sexo = sexo;
this.salarioBase = salarioBase;
this.dataNascimento = dataNascimento;
this.dataAdmissao = dataAdmissao;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getCpf() {
return cpf;
}
public void setCpf(String cpf) {
this.cpf = cpf;
}
public String getRg() {
return rg;
}
public void setRg(String rg) {
this.rg = rg;
}
public Sexo getSexo() {
return sexo;
}
public void setSexo(Sexo sexo) {
this.sexo = sexo;
}
public double getSalarioBase() {
return salarioBase;
}
public void setSalarioBase(double salarioBase) {
this.salarioBase = salarioBase;
}
public String getDataNascimento() {
return dataNascimento;
}
public void setDataNascimento(String dataNascimento) {
this.dataNascimento = dataNascimento;
}
public String getDataAdmissao() {
return dataAdmissao;
}
public void setDataAdmissao(String dataAdmissao) {
this.dataAdmissao = dataAdmissao;
}
@Override
public String toString() {
return "Funcionario{" +
"nome='" + nome + '\'' +
", cpf='" + cpf + '\'' +
", rg='" + rg + '\'' +
", sexo=" + sexo +
", salarioBase=" + salarioBase +
", dataNascimento='" + dataNascimento + '\'' +
", dataAdmissao='" + dataAdmissao + '\'' +
'}';
}
}