Hi All,
I will explain my question from an example.
In .H file//
@interface Employee:NSObject{
@private
NSString *name;
}
@property(nonatomic,retain) NSString *name;
in .M file//
@implementation{
@synthesize name;
}
In this scenario when i access the name property within another class , like myEmp.Name = @"John";
it doesn't raise any issue. Does this according to the encapsulation rules or am I misunderstanding?