Does Objective-C guarantee the initialization of interface member data?

Posted by Stabledog on Stack Overflow See other posts from Stack Overflow or by Stabledog
Published on 2010-03-28T14:20:40Z Indexed on 2010/03/28 14:23 UTC
Read the original article Hit count: 220

Filed under:

In an interface such as this:

@interface MyClass : NSObject { bool PlainOldBool; }

@end

... does PlainOldBool get auto-initialized to false, or is it necessary to use an init method to do that explicitly?

© Stack Overflow or respective owner

Related posts about objective-c