Test your knowledge

  1. You use the static var keywords to declare a:
    1. Type property.
    2. Instance property.
    3. Read-only computed instance property.

  2. You use the static let keywords to declare a:
    1. Mutable type property.
    2. Immutable instance property.
    3. Immutable type property.

  3. An instance-stored property:
    1. Has its own independent value for each instance of a class.
    2. Has the same value for all the instances of a class.
    3. Has the same value for all the instances of a class, unless it is accessed through the class name followed by a dot and the property name.

  4. A class that exposes mutable properties will:
    1. Generate immutable instances.
    2. Generate mutable instances.
    3. Generate mutable classes but immutable instances.

  5. An instance method:
    1. Cannot access instance properties.
    2. Can access instance ...

Get Swift 3 ObjectOriented Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.