Class AbstractAirline<T extends AbstractFlight>

java.lang.Object
edu.pdx.cs410J.AbstractAirline<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Airline

public abstract class AbstractAirline<T extends AbstractFlight> extends Object implements Serializable
This class represents an airline. Each airline has a name and consists of multiple flights.
See Also:
  • Constructor Details

  • Method Details

    • getName

      public abstract String getName()
      Returns the name of this airline.
    • addFlight

      public abstract void addFlight(T flight)
      Adds a flight to this airline.
    • getFlights

      public abstract Collection<T> getFlights()
      Returns all of this airline's flights.
    • toString

      public final String toString()
      Returns a brief textual description of this airline.
      Overrides:
      toString in class Object