langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
16
Task/Classes/Objective-C/classes-2.m
Normal file
16
Task/Classes/Objective-C/classes-2.m
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
@implementation MyClass
|
||||
|
||||
// Was not declared because init is defined in NSObject
|
||||
- init
|
||||
{
|
||||
if (self = [super init])
|
||||
variable = 0;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (int)variable
|
||||
{
|
||||
return variable;
|
||||
}
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue