I'm new in objective-C and I have a question about pointers
I know when I want to store an address instead of a value I use pointers
and in order to get an address, I have to use the &variableName
in objective-C, in order to make an object, I have to do the following:
ClassName *theObject = [[ClassName alloc] init];
which means I'm storing the address of ClassName in the object theObject
which is the same idea as:
ClassName *theObject = &ClassName; //(Correct me if i'm wrong please);
but my question is when I make an object of int, float, double, char I don't create the object as explained above, the only thing I do is:
int object = 7;
why is it different in int, double, char, etc... ? they are not interfaces or what?