What is the difference between property and instance variable?
Answer / Prem Chandra Mishra
In Objective-C, an instance variable is a variable that belongs to an object and exists as long as the object exists. A property is a syntactic sugar around an instance variable that provides accessors (getters and setters) and optionally manages memory for you.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is objective c programming used for?
Who calls dealloc method? Can we implement dealloc in arc?
Are id and instancetype same? If not, what are differences between them?
What is protocol in simple words?
What is the main difference between function calls and messages?
What are the attributes of category?
What is .m file in objective c?
Mention whether nsobject is a parent class or derived class.
What are properties and instance variables in objective c and swift?
What is the use of objective c?
What is better objective c or swift?
What is the difference between string and nsstring?