-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBillete.java
More file actions
35 lines (31 loc) · 912 Bytes
/
Billete.java
File metadata and controls
35 lines (31 loc) · 912 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
30
31
32
33
34
35
import java.util.Date;
import java.util.List;
public class Billete {
//Atributos
int idBillete;
Date fechaEmision;
double precioTotal;
Cliente cliente;
Ciudad origen;
Ciudad destino;
Categoria categoria;
List <Vuelo> vuelos;
//Metodo constructor por defecto
public Billete(){
}
/*//Sobecarga de constructores
public Billete(List <Vuelo>){
this.vuelos = vuelos;
}
//Sobecarga de constructores
public Billete(int idBillete,Date fechaEmision,double precioTotal,Cliente cliente,Ciudad origen,Ciudad destino,Categoria categoria,List<Vuelo> vuelos){
this.idBillete = idBillete;
this.fechaEmision = fechaEmision;
this.precioTotal = precioTotal;
this.cliente = cliente;
this.Ciudad = origen;
this.Ciudad = destino;
this.categoria = categoria;
this.vuelos = vuelos;
}*/
}