Instance Method

initWithName:iataCode:icaoCode:

Creates a new airline object with the specified contents and attributes.

Declaration

- (instancetype)initWithName:(NSString *)name iataCode:(NSString *)iataCode icaoCode:(NSString *)icaoCode;

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.