I'e got this protocol.

```
//MyProtocolClass.h
@protocol MyProtocolDelegate <NSObject>

@optional
@property (nonatomic, assign) int anInteger;

@end

@interface MyProtocolClass:NSObject
@end

```

Then I'm using this protocol on this class:

```
//.h
@interface MyClass:NSObject <MyProtocolDelegate>
@end

//.m
@implementation MyClass
@synthesize anInteger;

    -(void) aFunction
    {
        NSLog(@"%d",self.anInteger);
        self.anInteger = 200;
        NSLog(@"%d",self.anInteger);
    }

@end

```

I want to set a default the value 100 on the variable `anInteger` so that it holds that value wether the user sets it or not.

The NSLogs should output:

```
100
200

```

I know how to do this using a function but can I do this using a property? 
Thank you.