It is my understanding that, in addition to allocating memory, alloc
sets all instance variables (with the exception of the isa
variable) to zero or to the equivalent type for zero, such as nil
, NULL
, and 0.0.
But I recently read the following about init:
Initialization sets the instance variables of an object to reasonable and useful initial values.
I'm a bit confused as to what "reasonable and useful initial values" means....
If alloc
has already set the values to zero, is init
altering these values in any way?