Swift Flashcards
1
Q
How is variable declaration different b/w Swift and Objective-C?
A
We no longer need to declare variable type. Variables are declared by simple assignment. This is called implicit declaration.
2
Q
What is the syntax “sugar” for declaring Arrays?
A
[Int], short for Array<int></int>
3
Q
What is a computed property?
A
A computed property is a function declared as a property.
4
Q
A