HOW TO ACCESS THE ENCAPSULATED DATA IN OBJECTIVE-C ?

Jennifer Morgan

Total Post:3

Points:15
Posted by  Jennifer Morgan
 718  View(s)
Ratings:
Rate this:
  1. Jennifer Morgan

    Post:3

    Points:15
    How to access the encapsulated data in objective-c ?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!