---
title: "What is dynamic?"  
description: "What is dynamic?"  
author: "Tarun Kumar"  
published: 2015-07-27  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/2736/what-is-dynamic  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 2 minutes  

---

# What is dynamic?

You use the **@dynamic** keyword to tell the compiler that you will fulfill the API contract implied by a property either by providing method implementations directly or at runtime using other mechanisms such as dynamic loading of code or dynamic method resolution. It suppresses the warnings that the compiler would otherwise generate if it can’t find suitable implementations. You should use it only if you know that the methods will be available at runtime.

[ In other words, the @dynamic keyword tells the compiler that you will provide accessor methods dynamically at runtime. This can be done using the Objective-C runtime functions.]

## Answers

### Answer by Tarun Kumar

You use the **@dynamic** keyword to tell the compiler that you will fulfill the API contract implied by a property either by providing method implementations directly or at runtime using other mechanisms such as dynamic loading of code or dynamic method resolution. It suppresses the warnings that the compiler would otherwise generate if it can’t find suitable implementations. You should use it only if you know that the methods will be available at runtime.

[ In other words, the @dynamic keyword tells the compiler that you will provide accessor methods dynamically at runtime. This can be done using the Objective-C runtime functions.]


---

Original Source: https://www.mindstick.com/interview/2736/what-is-dynamic

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
