Reputation: 91
Hi I am very new to Objective-C with Java/C# Background. In Java I can create 2 classes in Single Java Class file like as follows
class class1{
}
class class2{
}
How Can I do that in Objective-C ?
I already have .m file with name util. How can I add one more class ? sorry for my newbie numenclature!
Thanks
Upvotes: 4
Views: 1016
Reputation: 7935
You can do it in the same way:
@interface Class1
@end
@interface Class2
@end
@implementation Class1
@end
@implementation Class2
@end
Probably you would like to move interfaces to the header file.
Upvotes: 6