Can we access the integer type variables in classB which are declared in classA by not using extern?
For objects I used ClassA *obj1 = [[ClassA alloc]init]; And accessed the objects of classA into class B.
But, I am not able to do them with the int , float, NSTimeInterval. How can we do for them without using extern ?
Thank You.
I think you can just declear it in the interface like:
and in the implementation file:
and you can use this in class B:
These things are all OOP is about
What is preventing you to do so?