Concept Flashcards
What does plus sign in front of method mean?
Static method
What does dash sign in front of method mean?
Instance method
What does sending a message mean?
Calling a method
What is “id” object?
Similar to “object” in C# which is dynamic typing.
Is any method can be written in C method style?
Yes
Are properties declared by @property “atomic” by default?
Yes
What is “atomic”?
Thread-safety attribute
Does “atomic” cause overhead?
Yes
What is “nonatomic”?
No thread-safe (but can apply on your own). Hence, less overhead.
Recommended for no multi threading class.
Does “atomic” allow custom setter and getter?
No, it should be non-atomic in order to create those.
Is it true that parent object should maintain a strong reference with its children?
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.
What is protocol?
Global interface
What is categories?
Partial class in C#