What are the different types of protocols?
Answer / Shobha Kumari
In Objective-C, there are three main types of protocols: (1) Protocols with methods declaration only - these define a set of methods that a class must implement. (2) Protocols with methods implementation - these are also known as C categories and provide method implementation for Objective-C classes. (3) Delegation protocols - these define a protocol to be followed by an object to handle events or messages from another object.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to convert objective c project to swift?
Is struct a class?
What is nsmutabledictionary?
Is objective c similar to c++?
How does dispatch_once manages to run only once?
When will you use nsarray and nsmutablearray?
What is the difference between #import and #include in objective-c?
What do you mean by @synthesize and @dynamic in the objective-c? And also explain what do you mean by synthesized in objective-c?
What is an m file?
What is objective c & why it is used for?
Mention which class can you use for parsing of xml in iphone?
What do you understand by protocol?