What are properties and instance variables in objective c and swift?



What are properties and instance variables in objective c and swift?..

Answer / Ravi Tewari

In Objective-C, a property is a syntactic sugar for accessing instance variables. Instance variables are data members that belong to an instance of a class. In Swift, properties serve the same purpose but have more flexible syntax options.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is objective c runtime?

1 Answers  


What is a class in xcode?

1 Answers  


How do I open .am files?

1 Answers  


How to initialize nsmutabledictionary in objective c?

1 Answers  


What happens with the objects if the array is released?

1 Answers  


How do you write an objective statement?

1 Answers  


How to declare variable in objective c?

1 Answers  


What are the types of ios binaries you can create using xcode?

1 Answers  


What is the difference between category and extension in objective c?

1 Answers  


How declare methods in objective c?

1 Answers  


What is enum in objective c?

1 Answers  


What is the difference between string and nsstring?

1 Answers  


Categories