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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -