I have the class Stockholging where its created the properties and methods costInDollars & valueInDollars.. I need to create a instance of each stock add each object to the array and then print it useing fast enumeration.
//Instantiation and creation of each stock
StockHolding *o1 = [[StockHolding alloc]init];
StockHolding *o2 = [[StockHolding alloc]init];
StockHolding *o3 = [[StockHolding alloc]init];
//Setting the values, and calling the methods costInDollars and valueInDollars for each object
[o1 setPurchaseSharePrice:2.30];
[o1 setCurrentSharePrice:4.50];
[o1 setNumberOfShares:40];
[o1 costInDollars];
[o1 valueInDollars];
[o2 setPurchaseSharePrice:12.10];
[o2 setCurrentSharePrice:10.58];
[o2 setNumberOfShares:30];
[o2 costInDollars];
[o2 valueInDollars];
[o3 setPurchaseSharePrice:45.10];
[o3 setCurrentSharePrice:49.51];
[o3 setNumberOfShares:210];
[o3 costInDollars];
[o3 valueInDollars];
// Creation an array and adding objects to the array
NSMutableArray *bolsa = [[NSMutableArray alloc]init];
[bolsa addObject:o1];
[bolsa addObject:o2];
[bolsa addObject:o3];