Friday, December 23, 2011

Scope of class instance variables

The class instance variables can be scoped in objc similar to java/flex. @private will allow methods of the class only to access the instance variables. @protected (or no access specifier mentioned, default) will allow methods in the current class and methods of subclass to allow access to instance variable. @public is the equivalent of public in java/flex.

No comments:

Post a Comment