Object-C 中的 Interface 與 C# 的 Interface 不太一樣,在 C# 中 Interface 可有可無,在用來傳遞資料的型別中實作 Interface 可以說是多此一舉,但在 Object-C 中 Interface 是必要的,它定義了這個型別有哪些屬性、方法。
Interface 結構 (TestModel.h)
#import <Foundation/Foundation.h>
@interface TestModel : NSObject {
}
@endImplementation 結構 (TestModel.m)#import "TestModel.h" @implementation TestModel @end


