MakeSchool-Tutorials / Getting-Started-With-Swift-2017

0 stars 2 forks source link

Initializers Challenge Question #12

Closed TheoBendixson closed 7 years ago

TheoBendixson commented 7 years ago

In the challenge question, it says both tow trucks and delivery trucks should have a fuel reserve of 200. In the answer to the challenge question, no fuel is specified in either subclass.

Proposed Solution:

  1. In the initializer for TowTruck, set the fuel to 200.
  2. Ini the initializer for DeliveryTruck, set the fuel to 200.