// Sample for @property and @sythesize //
@interface ClassA
NSString *str;
@end
@implementation ClassA
@end
The Main Function main()
// убедитесь, что вы #import ClassA
ClassA *obj=[[ClassA alloc]init];
obj.str=@"XYZ"; // That time it will give the error that we don't have the getter or setter method. To use string like this we use @property and @sythesize