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 is the use of objective c?
What is a selector objective c?
How we can layout subviews in a view?
What are blocks and how are they used?
How to convert data to string in objective c?
What is m script in matlab?
What is a delegate? Can you retain delegates?
What are the important data types found in objective-c?
Is python static or dynamic?
Who invented objective c?
What is protocol in simple words?
What is mark and sweep algorithm?