I was trying to learn how to use properties in iOS programming. I just want to check with people here if what I got is right?
Say I have a property
@interface Person : NSObject
@property NSString *firstName;
@end
in implementation
@implementation XYZPerson
@synthesize firstName;
...
@end
By this,
a) an instance variable named: firstName
is created
b) whenever I want to use property inside my class, I call self.firstName
(or setter/getter)
c) I can initialize the property in the init method like this:
-(id) init {
...
self.firstName=@"SomeText";
...
}
I believe the points I mentioned above, are correct, right?