Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category