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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -