- Setting a default value other than 0 for a property
- @property(nonatomic) int stackTop;
- @sythesize stackTop = _stackTop;
- -(void)setStackTop:(int)stackTop
- {
- _stackTop = -1;
- }
- -(id)init {
- if (self = [super init]) {
- _stackTop = -1;
- }
- }
- -(id)init {
- if (self = [super init]) {
- _stackTop = -1;
- }
- }
- -(id)init
- {
- self = [super init];
- if(self)
- {
- _stackTop = -1;
- }
- }
- self.stackTop = -1;