Created
October 24, 2014 03:01
-
-
Save anonymous/f5fbec6812ba40654d89 to your computer and use it in GitHub Desktop.
NSArray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import "BNRStockHolding.h" | |
@interface BNRPortfolio : NSObject | |
// Declaring Instance Variables | |
@property (nonatomic) NSMutableArray *stockHoldings; | |
// Declaring Methods | |
@end | |
Inside main: | |
// Setting up A portfolio | |
BNRPortfolio *myPortfolio = [[BNRPortfolio alloc] init]; | |
[myPortfolio._stockHoldings addObject:instanceA]; | |
[myPortfolio._stockHoldings addObject:instanceB]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment