Contents

init(rentalCompanyName:type:make:model:rentalCarDescription:)

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

Declaration

init(rentalCompanyName: String, type: String?, make: String?, model: String?, rentalCarDescription: String?)

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.