How to access the encapsulated data in objective-c ? Anonymous User171920-Aug-2015iphoneiphone ios objective c Updated on 18-Sep-2020
Anonymous User
20-Aug-2015(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]