public override String ToString() { return ("Stock[symbol=" + Symbol + ",pricePerShare=" + PricePerShare.ToString().Replace(',', '.') + ",numShares=" + NumShares + "]"); }
public override string ToString() { return("Stock[symbol=" + Symbol.ToString() + "," + "pricePerShare=" + PricePerShare.ToString().Replace(",", ".") + "," + "numShares=" + NumShares.ToString() + "]"); }