No, property cannot have array or function types. The original design concept is to better manage the life cycle of object types. If you want to use property to define arrays or functions, you can do it through pointers (if it is a basic data type pointer) assign attribute). Or you can also write like this
@interface subClass : superClass{
@public
int array[10];
}
No, property cannot have array or function types. The original design concept is to better manage the life cycle of object types. If you want to use property to define arrays or functions, you can do it through pointers (if it is a basic data type pointer) assign attribute).
Or you can also write like this