What is protocol with example?
Answer / Prateek Trivedi
A protocol defines a blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality. An example of a protocol in Objective-C is UITableViewDataSource, which specifies the methods to be implemented by an object to supply data for display in a table view.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is enum in objective c?
What are the advantages of using objective-c?
Who calls dealloc method? Can we implement dealloc in arc?
Can you use swift and objective c together?
Is it possible to implement dealloc in arc?
What are the rules of variable?
What is method swizzling in objective c and why would you use it?
How to convert nsnumber to nsstring in objective c?
Can we implement dealloc in arc? If yes, what is the need to do that?
Is c++ similar to objective c?
What is the difference between a script file and a function matlab?
What is difference between datasource and delegate?