Does methods of a class return address of its instances?
Look at this code.
NSHost*instance=[NSHost currentHost]; NSString*answer=[instance localizedName]; NSLog(@"@",answer);
- Does currentHost method of NSHost class return address of the instances or all method of class return address of its instances?<for the first line of code
2)Can you store a pointer in a variable? Since localizedName returns a pointer, then storing pointer in a variable is like storing a variable in a variable because pointer is also a variable when we first set it. < for 2nd line of code
the book says localizedName returns a pointer to an instance of NSString