-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCafe PCL.txt
55 lines (48 loc) · 1.49 KB
/
Cafe PCL.txt
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
Maquina{
----------------------------------------------------------------------
String modelo, endereco;
double faturamento;
Estoque estoque;
ArrayList<Administrador> logins;
ArrayList<Bebida> historico_pedidos;
----------------------------------------------------------------------
Bebida fazerPedido(String nome_bebida);
void exibePreco(Bebida x);
void recebeDinheiro();
/* ELABORAR OS OUTROS METODOS */
}
Administrador{
----------------------------------------------------------------------
String nome, cpf, username, senha;
boolean gerente;
----------------------------------------------------------------------
boolean senhaCorreta(String x);
void trocarSenha(String senha_velha, String senha_nova);
}
Estoque{
----------------------------------------------------------------------
double maxCafe, maxLeite, maxChocolate, maxCanela, maxAcucar;
----------------------------------------------------------------------
void fazPedido(Bebida b);
/* ELABORAR OS METODOS */
abstract Bebida{
-----------------------------------------------------------------
double preco;
int acucar;
String tamanho;
-----------------------------------------------------------------
static boolean temIngredientes(Estoque es);
double calculaPreco();
}
Cafe extends Bebida{
double xCafe;
}
CafeComLeite extends Cafe{
double xLeite;
}
Cappucino extends Bebida{
double xCafe, xChocolate, xLeite, xCanela;
}
Chocolate extends Bebida{
double xChocolate, xLeite;
}