0

Yes, you do not need to synthesise them if the setters and getters are as simple as above. In recent versions the "_" on the front is for the internal representation of the property. You also do not need the statements on lines 3 & 4.

Properties are the external attributes of you class coffeeShop. When you create an instance of this class you can then set these properties.

`

coffeeShop *myShop = [[coffeeShop alloc] init];
myShop.coffee = @"arabica";

`

0

I think you are jumping the gun here, for example the decision to save your records is a decision for the technical design. At this stage you don't really even have functional requirements tied down, let alone a functional design. Start with a needs analysis, ie a detailed understanding of the need you are trying to address and from that derrive the functions that the software must perform. You can then start looking at how you are going to implement those functions technically and I am thinking it is probably not going to be a text file. Unless, of course, this is a student assignment in which case you should be writing it yourself.