Summary: Swift

Study material generic cover image
  • This + 400k other summaries
  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
PLEASE KNOW!!! There are just 37 flashcards and notes available for this material. This summary might not be complete. Please search similar or other summaries.
Use this summary
Remember faster, study better. Scientifically proven.
Trustpilot Logo

Read the summary and the most important questions on swift

  • applying mvc

    This is a preview. There are 27 more flashcards available for chapter 12/02/2015
    Show more cards here

  • When you pass something other than a class to a function, what happens?

    The "something" get's copied. When a class is copied i gets a reference
  • Are arrays and dictionaries classes?

    NO, structs
  • Whats the difference between a struct and a class?

    1. structs are passed by value, classes by reference
    2. classes can have inheritance, structs cannot
  • Are all non class passed vars to functions read-only by default?

    YES, type var for them if you want to edit hem
  • How doe you "get" values out of an enum?

    With an enum
  • How do you create a constant syntacticly in swift

    By using the keyword "let"
  • Does your program crash when you try to access a non existing element in an array?

    YES
  • how do you define a Dictionary

    var myDict = Dictionary<String, Int>() //or
    var myDict = [String"Int]() //or
    var myDict: [String:Int] = [:]
  • Is Range a struct?

    Yes
  • What is a range

    Just two points of a sensible type. For i.e. an array a "sensible type" is an Int
PLEASE KNOW!!! There are just 37 flashcards and notes available for this material. This summary might not be complete. Please search similar or other summaries.

To read further, please click:

Read the full summary
This summary +380.000 other summaries A unique study tool A rehearsal system for this summary Studycoaching with videos
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

Topics related to Summary: Swift