---
title: "What do you mean by \" Protocol \"?"  
description: "What do you mean by \" Protocol \"?"  
author: "Tarun Kumar"  
published: 2015-09-04  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/22805/what-do-you-mean-by-protocol  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# What do you mean by " Protocol "?

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.

## Answers

### Answer by Tarun Kumar

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.


---

Original Source: https://www.mindstick.com/interview/22805/what-do-you-mean-by-protocol

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
