Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6727153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:00:51+00:00 2026-05-26T10:00:51+00:00

Possible Duplicate: Property Declaration and Automatic Backing Storage Allocation I know the basic functions

  • 0

Possible Duplicate:
Property Declaration and Automatic Backing Storage Allocation

I know the basic functions of @property and @synthesize directives, but recently I found a sample code: enter image description here

There’s not any class member variables in TTDownloader, but it works perfect.

TTDownloader *dl = [[TTDownloader alloc] init];
NSLog(@"%d %@", dl.aaa, dl.bbb); // result: 0 (null)
dl.aaa = 101;
dl.bbb = [NSNumber numberWithInt:201];
NSLog(@"%d %@", dl.aaa, dl.bbb); // result: 101 201

My questions are listed below:

  1. Where is aaa and bbb? I don’t even have a place to hold these data. TTDownloader is empty (except some variables and functions derived from NSObject).

  2. Did I miss some great features of Objective C? Are they described in Obj-C Programming Guide, I just read part of it.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:00:52+00:00Added an answer on May 26, 2026 at 10:00 am

    In the modern runtime on all platforms except 32 bit OS X, when you synthesize a property, if the instance variable has not been declared, it will be created automatically. so

    1. aaa and bbb are properties i.e. each is a pair of accessor methods which are synthesized and use the instance variables _aaa and _bbb respectively.

    2. Yes, see above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Property Declaration and Automatic Backing Storage Allocation I'm really confused about this
Possible Duplicate: Underscore prefix on property name? What does this mean? @synthesize window=_window; I
Possible Duplicate: Difference between Property and Field in C# I thought that basic properties
Possible Duplicate: Client Id for Property (ASP.Net MVC) In my View I'm using jquery
Possible Duplicate: Making a generic property I'm not quite sure how to do that,
Possible Duplicate: Property and Encapsulation NEWB Alert!! I am starting with Android and Java
Possible Duplicate: declare property as object? in java you can create an object directly
Possible Duplicate: Error : get property of non-object I am new to codeigniter model,
Possible Duplicate: Using ApplicationSettings to store Checked property for WinForms RadioButtons I have three
Possible Duplicate: Remove CSS from a Div using JQuery we can set backgroung-image property

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.