(a)Data encapsulation encourages the use of methods to +get and set the values of instance variables in a class. (b)But the developer to want to directly access an instance variable without having to go through an accessor method. (c) In objective-c syntax for an instance variable is as follow [class instance variable name]
(a)Data encapsulation encourages the use of methods to +get and set the values of instance variables in a class.
(b)But the developer to want to directly access an instance variable without having to go through an accessor method.
(c) In objective-c syntax for an instance variable is as follow [class instance variable name]