Class Offer


  • public class Offer
    extends Object
    An offer for a flight
    Author:
    Herbert Praehofer
    • Field Detail

      • flight

        public final Flight flight
        The flight of the offer
      • price

        public final int price
        The price of the offer
      • retailer

        public final Retailer retailer
        The retailer offering the flight
    • Constructor Detail

      • Offer

        public Offer​(Retailer retailer,
                     Flight flight,
                     int price)
        Constructor creating an offer.
        Parameters:
        retailer - the retailer of the offer
        flight - the flight
        price - the price