Swift Developer Question:

Download Job Interview Questions and Answers PDF

Do you know the difference between copy and retain?

Swift Developer Interview Question
Swift Developer Interview Question

Answer:

Retaining an object means the retain count increases by one. This means the instance of the object will be kept in memory until it’s retain count drops to zero. The property will store a reference to this instance and will share the same instance with anyone else who retained it too. Copy means the object will be cloned with duplicate values. It is not shared with any one else.

Download Swift Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me some Common Execution States In Ios?Tell us what Are B-Trees?