Posto.java
Created with JBuilder
class Posto {
  public static final int STANDARD = 0;
  public static final int VEGETARIANO = 1;
  public static final int VEGANO = 2;
  public static final int IPOGLICEMICO = 3;

  // Attributi
  private String nome, cognome, passaporto;
  private String codicePosto;
  private int    tipoPasto;

  // Costruttore
  public Posto(String n, String c, String p, String d, int t) {
    nome = n;
    cognome = c;
    passaporto = p;
    codicePosto = d;
    tipoPasto = t;
  }

  // Metodi di restituzione
  public String restituisciNome() {
    return nome;
  }
  public String restituisciCognome() {
    return cognome;
  }
  public String restituisciPassaporto() {
    return passaporto;
  }
  public String restituisciCodicePosto() {
    return codicePosto;
  }
  public int restituisciTipoPasto() {
    return tipoPasto;
  }
}

Posto.java
Created with JBuilder