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...


What is protocol in objective-c?



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

Post New Answer

More Objective-C Interview Questions

What is the use of objective c?

1 Answers  


What is a selector objective c?

1 Answers  


How we can layout subviews in a view?

1 Answers  


What are blocks and how are they used?

1 Answers  


How to convert data to string in objective c?

1 Answers  


What is m script in matlab?

1 Answers  


What is a delegate? Can you retain delegates?

1 Answers  


What are the important data types found in objective-c?

1 Answers  


Is python static or dynamic?

1 Answers  


Who invented objective c?

1 Answers  


What is protocol in simple words?

1 Answers  


What is mark and sweep algorithm?

1 Answers  


Categories