I would like to know what the @interface in objective C is? is it just where the programmer want to declare the variables, class name or method names...? I am not sure wheth
probably good if you take a look at this + I thought it was great help to understand
From the article:
@interface
#ifndef __FOO_H__
#define __FOO_H__
class Foo
{
...
};
#include "Foo.h"
...
@interface Foo : NSObject
{
...
}
@end
#import "Foo.h"
@implementation Foo
...
@end
@protocol
struct MyInterface
{
void foo() = 0;
}
class A : MyInterface
{
public:
void override foo() { ... }
}
@protocol MyInterface
-(void) foo;
@end
@interface Foo : NSObject
{
-(void) foo {...}
...
}
@end