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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the syntax “sugar” for declaring Arrays?

A

[Int], short for Array<int></int>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a computed property?

A

A computed property is a function declared as a property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly