Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you define a protocol?



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

Post New Answer

More Objective-C Interview Questions

Can objective c run on windows?

1 Answers  


When will you use nsarray and nsmutablearray?

1 Answers  


What are some of the major differences between objective c and swift?

1 Answers  


When might you use a cfarray/dictionary instead of a nsarray/dictionary?

1 Answers  


What is the use of category in objective-c?

1 Answers  


Who calls dealloc method?

1 Answers  


What is the difference between string and nsstring?

1 Answers  


What is delegation protocol?

1 Answers  


What is the main difference between function calls and messages?

1 Answers  


What is the principle distinction between the function calls and messages?

1 Answers  


What is class extension? Why do we require them?

1 Answers  


What is a delegate? Can you retain delegates?

1 Answers  


Categories