Concept Flashcards

0
Q

What does plus sign in front of method mean?

A

Static method

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

What does dash sign in front of method mean?

A

Instance method

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

What does sending a message mean?

A

Calling a method

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

What is “id” object?

A

Similar to “object” in C# which is dynamic typing.

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

Is any method can be written in C method style?

A

Yes

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

Are properties declared by @property “atomic” by default?

A

Yes

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

What is “atomic”?

A

Thread-safety attribute

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

Does “atomic” cause overhead?

A

Yes

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

What is “nonatomic”?

A

No thread-safe (but can apply on your own). Hence, less overhead.

Recommended for no multi threading class.

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

Does “atomic” allow custom setter and getter?

A

No, it should be non-atomic in order to create those.

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

Is it true that parent object should maintain a strong reference with its children?

A

True, and children do not have to have a strong reference to their parent. Use a weak reference to prevent memory leak from a retain cycle.

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

What is protocol?

A

Global interface

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

What is categories?

A

Partial class in C#

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