Changes

Jump to: navigation, search

Pointers and Indirection in Objective-C

60 bytes added, 18:57, 24 November 2009
no edit summary
<hr>
<google>BUY_OBJC</google>
In the preceding chapters on object-oriented programming we have used, but not described, a feature of Objective-C (actually derived form the underlying C programming language) in the form of ''pointers'' and ''indirection''. A clear understanding of this topic is important when working with objects and also when passing values as arguments to methods and functions.
In the above example, we will end up with two pointers (account1 and account2) that point to the same location in memory. We have not, therefore, created a copy of account1. For details on copying objects refer to the chapter entitled [[Copying Objects in Objective-C]].
 
<google>BUY_OBJC_BOTTOM</google>
<hr>

Navigation menu