LoginSignup
2
1

More than 5 years have passed since last update.

Objective-Cのクラスの実装のなかで 以下の変数xはどういう扱いになるんでしょうか...

Last updated at Posted at 2012-03-16
@interface Hoge : NSObject {}
@end

@implementation Hoge

int x = 0; // こいつはどういう扱いになる?

- (id)init {
    self = [super init];
    if (self) {
    }
    return self;
}

@end
2
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1