Home > DeveloperSection > Interviews > What do you mean by " Protocol "?

Posted on    September-04-2015 11:51 PM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  453  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    September-04-2015 11:51 PM

A Protocol is a feature in objective C that provides multiple inheritance in a single inheritance language. Objective C supports two types of protocols:

-          Ad hoc protocols called informal protocol

-          Compiler protocols called formal protocols

We can  create our own autorelease pool as soon as the thread begins executing; otherwise, our application will leak objects.

Modified On Sep-04-2015 11:52:43 PM

Don't want to miss updates? Please click the below button!

Follow MindStick