I am learning Obj-C and don’t quite understand the purpose of the code on lines 3 to 5.
Can someone please explain them?
1. myClassA.m
2. #import myClassB
3. @interface myClassA()
4. -(void) methodA
5. @end
6. @implementation myClassA
7. mymethodA {
NSLog{@"this is mymethodA");
}
If you have some references about these, I am happy to go over it by myself.
Adding to Josh’s answer, Stanford’s Paul Hegarty, lecturing on iPad and iPhone programming stated it simply as (paraphrasing here):
Hegarty’s lecture is very current and freely available on iTunes University.