What is protocol in objective-c?
Answer / Rajeev Srivastava
In Objective-C, a protocol is a collection of methods that should be implemented by any class or category that conforms to the protocol. Protocols allow for objects of different classes to work together because they agree to implement the same set of methods. Protocols are defined using the 'protocol' keyword and methods are enclosed in curly braces '{' and '}'. A protocol can also declare properties with the '@property' directive.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the classifications of property?
What does @synchronized() do?
What is a nsstring?
Is objective c compiled?
What does the m mean in xcode?
What does mean in xcode?
What is the difference between c and objective c?
What is property and its types?
What does nonatomic mean?
Why create a custom view?
What is differences between nsnull and nil in objective c?
What does r mean in xcode?