Considering the following Objective-c snippet, which of the following is NOT correct ?
#import <Foundation/Foundation.h> @interface SampleClass:NSObject - (void)sampleMethod; @end @implementation SampleClass - (void)sampleMethod{ NSLog(@"Hello, World! \n"); } @end int main() { /* my first program in Objective-C */ SampleClass *sampleClass = [[SampleClass alloc]init]; [sampleClass sampleMethod]; return 0; }
Correct Answer: `@end` marks the end of the class
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Objective C MCQ Questions