O'Reilly logo

Swift 3 ObjectOriented Programming - Second Edition by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required