Sunday, 11 November 2012

The Receiver's Instance Variables

A method has automatic access to the receiving object's instance variables. You don't need to pass them to the method as arguments. Every method assumes the receiver and its instance variables, without having to declare them as arguments. A method has automatic access only to the receiver's instance variables. If it requires information about a variable stored in another object, it must send a message to the object asking it to reveal the contents of the variable.

0 comments:

 
© Copyright 2035 iOS Developer
Theme by Yusuf Fikri