objective c - Does "alloc" methods produce an instance ? -
when write:
myclass *obj = [[myclass alloc]init];
i can split in 2 parts:
[myclass alloc]
--->> produce something[theproduct init];
so alloc class methods , being init instance method suppose must called on instance...in case result of [myclass alloc]
. i'm confused that.
are conjectures correct?
+alloc
allocates , zeroes memory instance of class. instance uninitialized—it's not ready used object until initialize -init
or related.
Comments
Post a Comment