Exemplo n.º 1
0
        internal Stock ReadStock(StringReader data)
        {
            Stock finalObj = new Stock(data.ReadLine(), Convert.ToDouble(data.ReadLine()), Convert.ToInt32(data.ReadLine()));

            return(finalObj);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            Stock abc = (Stock)obj;

            return(Symbol == abc.Symbol && PricePerShare == abc.PricePerShare && NumShares == abc.NumShares);
        }