Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(void)
- {
- // Creating an object
- Possession *p = [[Possession alloc] init];
- [p setPossessionName:[[NSString alloc] initWithString:@"Hey"]];
- NSMutableArray *items = [[NSMutableArray alloc] init];
- items addObject:[p possessionName]];
- for(i=0; i < [items count]; i++){
- NSLog(@"%@", [items objectAtIndex:i]);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment