do static variables survive instances in objective-c? -
do static variables survive instances in objective-c? -
i understand static
in objective-c different static
in java. question objective-c static variables. have static variable in objective-c. if set in 1 instance of class. value visible if create new instance of class after variable set?
yes, that's point of static
variables. not instance variables. static variable exists 1 time in scope. initialized 1 time well.
this true static variables declared outside of method static variables declared within method.
objective-c static
Comments
Post a Comment