What exactly is a property in Objective C ? What is the difference between a property ans an instance variable?
Posted
by
tek3
on Stack Overflow
See other posts from Stack Overflow
or by tek3
Published on 2012-04-12T11:19:38Z
Indexed on
2012/04/12
11:28 UTC
Read the original article
Hit count: 341
iphone
|objective-c
I am very much confused between instance variables and property. I have read number of posts regarding this but still i am not clear about it. I am from JAVA background and what i infer from objective C documentation is that a property is similar to JAVA BEAN CLASS (one having getter and setter of instance varibles). A property can accessed from other classes through its getter and setter methods while an instance variable is private and cannot be accessed from other classes.
Am i right in thinking in this direction ?
© Stack Overflow or respective owner