Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Whenever you implement a setter or getter method, you should think about what you’re storing in the instance variables, what you’re retrieving, and whether you need to protect these values. For example, consider this when you set the name of one of your AddressCard objects using the setName: method:
[newCard setName: newName];