Changes

Jump to: navigation, search
Synthesized Accessor Methods
</pre>
Note that regardless of data type 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 the name of the instance variable (for example ''accountBalance''), capitalizes the first letter (''AccountBalance'') and then pre-fixes it with ''set'' (''setAccountBalance''). For example:

Navigation menu