property declaration without synthesize

http://www.techrepublic.com/blog/software-engineer/what-you-need-to-know-about-automatic-property-synthesis/

.m

  • By prefixing playerName with self. you will access the property
  • without it you will directly reference the instance variable

Hence self.playerName = @”hehe”, will make you access the either automatically generated set or custom set method.

whereas playerName = @”hehe”, will literally have you use the instance variable.

No Synthesize

Without @synthesize probability in the .m file,

_probability is the iVar
self.probability means to access the automatically generated get/set methods

try it