I have a game which have 5 class/level.Each class contain almost same variables.Now i want to know in which place should i declare my class variable.I have three option-
1.declaring the class variable in corresponding class .h file. 2.declaring a variable .h file(an empty .h file only for declaring variable and then import it to corresponding class.m file). 3.declaring the class variable in class .m file before init method.
Now I want to know which is the correct method.
**each class must import other class .h file because after completing level-1 i have to go level-2.So for scene transition i have to import level-2.h file and so on.
And one fore things if i import a class.h file which has same class variable like my class file ,then is it conflict with my class variable, or what will happen??