Home » Interview » Technology

What is difference between "assign" and "retain" keyword?

Correct Answer: Retain -Specifies that retain should be invoked on the object upon assignment takes ownership of an object Assign - Specifies that the setter uses simple assignment Uses on attribute of scalar type like float,int

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion