---
title: "What is use of @Synthesize?"  
description: "What is use of @Synthesize?"  
author: "Sunil Singh"  
published: 2015-04-21  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/2412/what-is-use-of-synthesize  
category: "iphone"  
tags: ["iphone", "ios", "ipad"]  
reading_time: 1 minute  

---

# What is use of @Synthesize?

We can use generated code like nonatomic, atmoic, retain without writing any lines of code. We also have getter and setter methods. To use this, you have 2 other ways: @synthesize or @dynamic: @synthesize, the compiler will generate the getter and setter automatically for you, @dynamic: you have to write them yourself.

## Answers

### Answer by Sunil Singh

We can use generated code like nonatomic, atmoic, retain without writing any lines of code. We also have getter and setter methods. To use this, you have 2 other ways: @synthesize or @dynamic: @synthesize, the compiler will generate the getter and setter automatically for you, @dynamic: you have to write them yourself.


---

Original Source: https://www.mindstick.com/interview/2412/what-is-use-of-synthesize

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
