Changes

Jump to: navigation, search
Synthesized Accessor Methods
Note that regardless of data types of the properties involved, the variable names may be placed on a single ''@synthesize'' line as illustrated above.
Having created the accessors, the question that now arises is what these methods are named. In assigning a name to a synthesized accessor methods, Objective-C take takes the name of the instance variable (for example ''accountBalance''), capitalizes the first letter (''AccountBalance'') and then pre-fixes it with ''set'' (''setAccountBalance''). For example:
<pre>

Navigation menu