Answer:
A protocol declares methods that can be implemented by any class. Protocols are not classes themselves. They simply define an interface that other objects are responsible for implementing. 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
Previous Question | Next Question |
Explain the difference between Cocoa and Cocoa Touch? | Explain me how to parse JSON? |