Hi all.
I am having a myShoppingCart class in my iPhone app, and i want an object of the myShoppingCart class through out the app. The doubt is that i read that Objective C doesnt support class variables, but it can make use of static variables in C .. What it means???
can i use like this (below)
@implementation myShoppingCart
@public static myShoppingCart cartObject
@end
Can i use this cartObject throughout the app???
I am having a myShoppingCart class in my iPhone app, and i want an object of the myShoppingCart class through out the app. The doubt is that i read that Objective C doesnt support class variables, but it can make use of static variables in C .. What it means???
can i use like this (below)
@implementation myShoppingCart
@public static myShoppingCart cartObject
@end
Can i use this cartObject throughout the app???