What is the purpose of the protocol?
Answer / Rahul Ranjan
The purpose of a protocol in Objective-C is to define a blueprint of methods, properties, and other requirements that suit a particular task or object. Protocols allow objects to provide common functionality, even if they don't share a common superclass.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is meant by not thread safe?
How to initialize nsmutabledictionary in objective c?
Does a thread created using performselectorinbackground:withobject: creates its own autorelease pool?
What is .m file in objective c?
What is lazy var?
What is difference between method and constructor?
Is objective c better than swift?
Explain the types of protocol?
What is umbrella header?
Explain what do you mean by dot notation?
What is difference between mutable and immutable?
What is the difference between string and nsstring?