-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
82 lines (54 loc) · 1.95 KB
/
Main.java
File metadata and controls
82 lines (54 loc) · 1.95 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import com.sun.org.apache.bcel.internal.generic.NEW;
import java.util.List;
public class Main {
public static void main(String[] args) {
//Instanciamos un objeto de tipo Cliente
Cliente cliente = new Cliente();
cliente.idCliente="6693366";
cliente.nombre="Jose Miguel";
cliente.primerApellido="Rivera";
cliente.segundoApellido="Albino";
//Instaciamos un objeto de tipo Billete
Billete billete = new Billete();
billete.idBillete =15;
billete.precioTotal=500;
billete.cliente=cliente;
Ciudad oruro= new Ciudad();
oruro.idCiudad=6516;
oruro.nombre="oruro";
billete.origen=oruro;
Ciudad cochabamba= new Ciudad();
cochabamba.idCiudad=1612;
cochabamba.nombre="cochabamba";
billete.destino=cochabamba;
Categoria turista= new Categoria();
turista.idCategoria=321654;
turista.nombre="tuista";
billete.categoria=turista;
//Instaciamos un objeto de tipo Ciudad
Ciudad ciudad = new Ciudad();
ciudad.idCiudad=11;
ciudad.nombre="Cochabamba";
//Instaciamos un objeto de tipo Categoria
Categoria categoria = new Categoria();
categoria.idCategoria=315;
categoria.nombre="Publica";
//Instaciamos un objeto de tipo Vuelo
Vuelo vuelo = new Vuelo();
vuelo.codigoVuelo="cb-52";
Billete billete1 = new Billete();
billete1.idBillete=511;
//Instaciamos un objeto de tipo Aeropuerto
Aeropuerto aeropuerto = new Aeropuerto();
aeropuerto.codigoAeropuerto="634154";
aeropuerto.nombre="BOA";
aeropuerto.ciudad=ciudad;
//Instaciamos un objeto de tipo Aeropuerto
Plaza plaza = new Plaza();
plaza.idPlaza=4161;
plaza.vuelo=vuelo;
plaza.categoria=categoria;
plaza.numeroPlazas=3154641;
plaza.tarifa=4161;
}
}