Tuesday, 10 September 2013

Stock exchange program in Objective-C

Stock exchange program in Objective-C

create a subclass of stock holding called ForeignStockHolding. Give
ForeginStockHolding an additional instance variable : conversationRate,
which will be float. ( the conversion rate is what you need to multiply
the local price by to get a price in canadian dollars . Assume the
purchase price and current price in local currency). override cost in
dollars and value in dollars to do the right thing. In Main(), add a few
instances of ForeignStockHodling to your array.

No comments:

Post a Comment