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. When you use the static var keywords to declare a type property:
    1. You cannot override the type property in the subclasses.
    2. You can override the type property in the subclasses.
    3. You can override the type property only in the superclass.

  2. When you use the class var keywords to declare a type property:
    1. You cannot override the type property in the subclasses.
    2. You can override the type property in the subclasses.
    3. You can override the type property only in the superclass.

  3. When you use the final keyword to declare an instance method:
    1. You cannot override the instance method in the subclasses.
    2. You can override the instance method in the subclasses.
    3. You can override the instance method only once, that is, in just one subclass.

  4. Polymorphism means: ...

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