-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGerente.java
More file actions
29 lines (23 loc) · 983 Bytes
/
Gerente.java
File metadata and controls
29 lines (23 loc) · 983 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
package exercise02;
public class Gerente extends CargoDeConfianca {
public Gerente(String nome, String cpf, String rg, Sexo sexo, double salarioBase, String dataNascimento, String dataAdmissao) {
super(nome, cpf, rg, sexo, salarioBase, dataNascimento, dataAdmissao, Bonificacao.GERENTE);
}
public double getSalarioBonificado () {
return (salarioBase * Bonificacao.GERENTE.getValor()) + salarioBase;
}
@Override
public String toString() {
return "Gerente{" +
"nome='" + nome + '\'' +
", cpf='" + cpf + '\'' +
", rg='" + rg + '\'' +
", sexo=" + sexo +
", salarioBase=" + salarioBase +
", dataNascimento='" + dataNascimento + '\'' +
", dataAdmissao='" + dataAdmissao + '\'' +
", bonificacao=" + bonificacao +
", salarioBonificado=" + getSalarioBonificado() +
'}';
}
}