iOS Developer Question:
What is a Protocol in Objective-C Programming Language?

Answer:
A Protocol is used to define a list of required optional methods that a class needs to implement. If a class adopts a protocol, it must implement all the needed methods in the protocols it adopts. It is identical to an Interface in Java and also to a purely Virtual Class in C++. Cocoa uses protocols to support interprocess communication through Objective-C messages.
Previous Question | Next Question |
Explain keywords alloc and new? | Explain Interfaces? |