How do you define a protocol?
Answer / Manoj Kumar Tiwari
"To define a protocol in Objective-C, you use the `@protocol` directive. Here's an example of defining a simple protocol:n```n@protocol MyProtocoln// Optional methods and properties go heren@endn```
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the three subatomic particles?
What is property in objective c?
What is extern objective c?
What is objective c runtime?
How different is objective c from swift?
Is objective c superset of c?
Can I write some c++ function in same .m file?
What are the blocks? How will you use them?
What are the main objectives of training?
What is an objective statement?
What is the use of synchronized() block in objective c?
Is method and function same?