-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gerente.java
28 lines (22 loc) · 931 Bytes
/
Gerente.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
public class Gerente extends Funcionario {
public Flarinthians flarinthians;
public void demitirAtendente(int index){
System.out.println("-- " + this.getNome() + " demitiu a(o) atendente.");
flarinthians.atendentes.remove(index);
}
public void demitirCozinheiro(int index){
System.out.println("-- " + this.getNome() + " demitiu a(o) cozinhero(a).");
flarinthians.cozinheiros.remove(index);
}
public void demitirEstoquista(int index){
System.out.println("-- " + this.getNome() + " demitiu a(o) estoquista.");
flarinthians.estoquistas.remove(index);
}
public Gerente(String nome, double salario){
super(nome, salario, "Gerente");
}
public Gerente(String nome, double salario, Flarinthians flarinthians){
super(nome, salario, "Gerente");
this.flarinthians = flarinthians;
}
}