What is delegation protocol?



What is delegation protocol?..

Answer / Devesh

A delegation protocol in Objective-C is a design pattern that allows one object to delegate tasks to another object. The first object, known as the delegate, conforms to a specific protocol, which declares a set of optional methods. When an event occurs within the first object, it will call the appropriate method on its delegate, if it has been set.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Explain what do you mean by dot notation?

1 Answers  


What is the difference between typedef and enum?

1 Answers  


What is umbrella header?

1 Answers  


What are the attributes of category?

1 Answers  


What is class extension?

1 Answers  


What is the principle distinction between the function calls and messages?

1 Answers  


Is objective c type safe language?

1 Answers  


Is method and function same?

1 Answers  


Does objective c support multiple inheritance?

1 Answers  


What is single inheritance in objective-c?

1 Answers  


What is a nsstring?

1 Answers  


How do I create an objective c class in xcode?

1 Answers  


Categories