Skip to content

Instantly share code, notes, and snippets.

Created October 24, 2014 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f5fbec6812ba40654d89 to your computer and use it in GitHub Desktop.
Save anonymous/f5fbec6812ba40654d89 to your computer and use it in GitHub Desktop.
NSArray
#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