internal Stock ReadStock(StringReader data) { Stock finalObj = new Stock(data.ReadLine(), Convert.ToDouble(data.ReadLine()), Convert.ToInt32(data.ReadLine())); return(finalObj); }
public override bool Equals(object obj) { Stock abc = (Stock)obj; return(Symbol == abc.Symbol && PricePerShare == abc.PricePerShare && NumShares == abc.NumShares); }