-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReserva.java
More file actions
56 lines (39 loc) · 1.11 KB
/
Reserva.java
File metadata and controls
56 lines (39 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
/*
* 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 Reserva implements Serializable {
private int numR;
private int nVuelo;
private int cantReserva;
public Reserva(int numR, int nVuelo, int cantReserva) {
this.numR = numR;
this.nVuelo = nVuelo;
this.cantReserva = cantReserva;
}
public int getNumR() {
return numR;
}
public void setNumR(int numR) {
this.numR = numR;
}
public int getnVuelo() {
return nVuelo;
}
public void setnVuelo(int nVuelo) {
this.nVuelo = nVuelo;
}
public int getCantReserva() {
return cantReserva;
}
public void setCantReserva(int cantReserva) {
this.cantReserva = cantReserva;
}
@Override
public String toString() {
return "numR = " + numR + ", nVuelo = " + nVuelo + ", cantReserva = " + cantReserva + "\n";
}
}