-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVuelo.java
More file actions
80 lines (55 loc) · 1.62 KB
/
Vuelo.java
File metadata and controls
80 lines (55 loc) · 1.62 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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaappempresaaerea;
import java.io.Serializable;
public class Vuelo implements Serializable{
private int numVuelo;
private int totalLug;
private int lugOcup;
private String destino;
public Vuelo(int num, int totalLug, int lugOcup) {
this.numVuelo = num;
this.totalLug = totalLug;
this.lugOcup = lugOcup;
}
public Vuelo(int numVuelo, int totalLug, int lugOcup, String destino) {
this.numVuelo = numVuelo;
this.totalLug = totalLug;
this.lugOcup = lugOcup;
this.destino = destino;
}
public Vuelo(int num, int totalLug) {
this(num,totalLug,0);
}
public int getNumVuelo() {
return numVuelo;
}
public void setNumVuelo(int numVuelo) {
this.numVuelo = numVuelo;
}
public int getTotalLug() {
return totalLug;
}
public void setTotalLug(int totalLug) {
this.totalLug = totalLug;
}
public int getLugOcup() {
return lugOcup;
}
public void setLugOcup(int lugOcup) {
this.lugOcup = lugOcup;
}
public String getDestino() {
return destino;
}
public void setDestino(String destino) {
this.destino = destino;
}
@Override
public String toString() {
return "numVuelo=" + numVuelo + ", totalLug=" + totalLug + ", lugOcup=" + lugOcup + ", destino=" + destino +"\n";
}
}