Instance Method

initWithRentalCompanyName:type:make:model:rentalCarDescription:

Creates a new rental car object with the specified contents and attributes.

Declaration

- (instancetype)initWithRentalCompanyName:(NSString *)rentalCompanyName type:(NSString *)type make:(NSString *)make model:(NSString *)model rentalCarDescription:(NSString *)rentalCarDescription;

Parameters

rentalCompanyName

The name of the rental car company.

type

The type of rental car. For example, "Economy Class".

make

The name of the rental car maker.

model

The name of the rental car model.

rentalCarDescription

A description of the rental car.

Return Value

A new INRentalCar object or nil if one can’t be created.