OC study

OOP

1. 类头文件 @Interface

`
@Class [DataType]
@interface klassName:NSObject | SuperClass

{
@protected|@public | @private
[DataType] propertyName;
....
-([Return DataType]funcName:(DataType)arg1 arg2Name:(DataType)arg2 ....;
+([Return DataType]funcName:(DataType)arg1 arg2Name:(DataType)arg2 ...;//类方法、静态方法
}

  1. 类实现 @Implementation

你可能感兴趣的:(OC study)