iOS Developer Question:

What is a Protocol in Objective-C Programming Language?

Tweet Share WhatsApp

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.

Download iOS Developer PDF Read All 102 iOS Developer Questions
Previous QuestionNext Question
Explain keywords alloc and new?Explain Interfaces?