Home > DeveloperSection > Interviews > How to access the encapsulated data in objective-c ?

Posted on    August-20-2015 11:39 PM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  397  View(s)
Rate this:

Jennifer Morgan
Jennifer Morgan

Total Post:3

Points:15
Posted on    August-20-2015 11:39 PM

(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]


Don't want to miss updates? Please click the below button!

Follow MindStick