Advertisement
Guest User

Untitled

a guest
May 7th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.88 KB | None | 0 0
  1. public class RegistroVuelo {
  2.     private int id, prioridad;
  3.     private String origen, destino;
  4.  
  5.     public RegistroVuelo(int id, int prioridad, String origen, String destino) {
  6.         this.id = id;
  7.         this.prioridad = prioridad;
  8.         this.origen = origen;
  9.         this.destino = destino;
  10.     }
  11.  
  12.     public int getId() {
  13.         return id;
  14.     }
  15.  
  16.     public void setId(int id) {
  17.         this.id = id;
  18.     }
  19.  
  20.     public int getPrioridad() {
  21.         return prioridad;
  22.     }
  23.  
  24.     public void setPrioridad(int prioridad) {
  25.         this.prioridad = prioridad;
  26.     }
  27.  
  28.     public String getOrigen() {
  29.         return origen;
  30.     }
  31.  
  32.     public void setOrigen(String origen) {
  33.         this.origen = origen;
  34.     }
  35.  
  36.     public String getDestino() {
  37.         return destino;
  38.     }
  39.  
  40.     public void setDestino(String destino) {
  41.         this.destino = destino;
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement