0

Possible Duplicate:
What is a Protocol

hi,

how to use protocol in Objective-c ? what is the advantage of it .?

Thank and regards+

0

1 Answer 1

7

Protocols have many advantages. The idea is to provide a way for classes to share the same method and property declarations without inheriting them from a common ancestor. This is especially useful in Objective-C when using the delegation pattern, on which the iOS and Mac OS SDKs rely heavily. There's plenty of information out there on the subject, including a good overview in Apple's developer documentation.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.