Skip to content

Commit b7a6ebb

Browse files
authored
Added the Objective-C support directory (4 files)
Added the Objective-C support directory, containing 4 files in Objective-C format.
1 parent 3b1ebc3 commit b7a6ebb

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// This is a single line comment
2+
/* This is
3+
a multi-li
4+
ne comment
5+
*/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// This is a single line comment
2+
/* This is
3+
a multi-li
4+
ne comment
5+
*/
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#import <Foundation/Foundation.h>
2+
3+
@interface SampleClass:NSObject
4+
- (void)sampleMethod;
5+
@end
6+
7+
@implementation SampleClass
8+
9+
- (void)sampleMethod {
10+
NSLog(@"Hello, World! \n");
11+
}
12+
13+
@end
14+
15+
int main() {
16+
/* my first program in Objective-C */
17+
SampleClass *sampleClass = [[SampleClass alloc]init];
18+
[sampleClass sampleMethod];
19+
return 0;
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#import <Foundation/Foundation.h>
2+
3+
@interface SampleClass:NSObject
4+
- (void)sampleMethod;
5+
@end
6+
7+
@implementation SampleClass
8+
9+
- (void)sampleMethod {
10+
NSLog(@"Hello, World! \n");
11+
}
12+
13+
@end
14+
15+
int main() {
16+
/* my first program in Objective-C */
17+
SampleClass *sampleClass = [[SampleClass alloc]init];
18+
[sampleClass sampleMethod];
19+
return 0;
20+
}

0 commit comments

Comments
 (0)