init(name:iataCode:icaoCode:)
Creates a new airline object with the specified contents and attributes.
Declaration
init(name: String?, iataCode: String?, icaoCode: String?)Parameters
- name:
The name of the airline.
- iataCode:
The two-letter International Air Transport Association (IATA) code for the airline.
- icaoCode:
The three-letter International Civil Aviation Organization (ICAO) code for the airline.
Return Value
A new airline object or nil if the initializer is unable to create the object.