Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- @interface CTContact : NSObject
- @property (nonatomic, readonly) NSString *firstName;
- @property (nonatomic, readonly) NSString *middleName;
- @property (nonatomic, readonly) NSString *lastName;
- @end
- import "CTContact.h"
- @protocol CTContactProtocol <NSObject>
- @property (nonatomic, readwrite) NSString *firstName;
- @property (nonatomic, readwrite) NSString *middleName;
- @property (nonatomic, readwrite) NSString *lastName;
- @end
- @interface CTContact () <CTContactProtocol>
- @end
- #import "CTContact.h"
- #import "CTContactProtocol.h"
- @implementation CTContact
- @synthesize firstName, middleName, lastName;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement