-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathReserva.java
More file actions
61 lines (44 loc) · 1.11 KB
/
Reserva.java
File metadata and controls
61 lines (44 loc) · 1.11 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
public class Reserva {
private int id;
private Hospede hospede;
private Quarto quarto;
private int diarias;
int valorTotal = diarias * 80;
public Quarto getQuarto() {
return quarto;
}
public void setQuarto(Quarto quarto) {
this.quarto = quarto;
}
Reserva(){
}
public int getId(){
return id;
}
public void setId(int id) {
this.id = id;
}
public Hospede getHospede() {
return hospede;
}
public void setHospede(Hospede hospede) {
this.hospede = hospede;
}
public int getDiarias() {
return diarias;
}
public void setDiarias(int diarias) {
this.diarias = diarias;
}
public void calcular_total() {
System.out.println("o preço da diaria ficara: " + valorTotal);
}
public void finalizar_reserva(){
quarto.marcar_indisponivel();
}
public void exibir_resumo(){
System.out.println("Detalhes da reserva: " + id + "valor que ficou: " + valorTotal );
quarto.exibir_detalhes();
hospede.exibir_hospede();
}
}