langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/Classes/Objective-C/classes-1.m
Normal file
11
Task/Classes/Objective-C/classes-1.m
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// There are no class variables, so static variables are used.
|
||||
static int myClassVariable = 0;
|
||||
|
||||
@interface MyClass : NSObject
|
||||
{
|
||||
int variable; // instance variable
|
||||
}
|
||||
|
||||
- (int)variable; // Typical accessor - you should use the same name as the variable
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue