Welcome to the Treehouse Community
Looking to learn something new?
Objective-C Syntax Overview
I don't understand what Doug means what he says that the getter methods have a name associated with the parameter. Any help is greatly appreciated.
Stone Preston42,016 Points
getter methods are named according to the instance variable they get. so if you have an NSArray instance variable named basketballs then the getter method for that instance variable is also called basketballs. it would look like:
- (NSArray *)basketballs;
setter methods are the same way except you put set in front of the instance variable's name: